|
From: | Emanuele |
Subject: | Re: [Qemu-devel] [PATCH 1/7] tests: qgraph API for the qtest driver framework |
Date: | Wed, 18 Jul 2018 23:13:18 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
On 07/18/2018 09:28 PM, Paolo Bonzini wrote:
I think he's right, it makes no sense to have qos-graph as patch 6, it could go as patch 2, even though by that time no object/node exist yet.On 18/07/2018 16:23, Stefan Hajnoczi wrote:+struct QOSGraphObject { + /* for produces, returns void * */ + QOSGetDriver get_driver;Unused?+ /* for contains, returns a QOSGraphObject * */ + QOSGetDevice get_device;Unused?What is unused?Neither of these fields are used in this patch. Please introduce them in the first patch that actually uses them. This way code review can proceed linearly and it also prevents deadcode when just part of a patch series is merged or backported.So do you suggest to squash patch 6 into this one, so that a user of QOSGraphObject exists already here?
Moreover, right now no file in patch 3-4-5 is actually compiled until patch 6, which is easily prone to errors in case of future edits (I too have this problem right now, when I need to modify sdhci.c and I'm forced to return to the branch head to compile), so adding it before would make things more clear.
Thanks, Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |