Re: [PATCH v2 4/7] qapi: Use QAPI_LIST_PREPEND() where possible

2020-11-17 Thread Stefan Hajnoczi
On Thu, Nov 12, 2020 at 07:13:37PM -0600, Eric Blake wrote: > Anywhere we create a list of just one item or by prepending items > (typically because order doesn't matter), we can use the now-public > macro. But places where we must keep the list in order by appending > remain open-coded until late

Re: [PATCH v2 4/7] qapi: Use QAPI_LIST_PREPEND() where possible

2020-11-17 Thread Markus Armbruster
Eric Blake writes: > Anywhere we create a list of just one item or by prepending items > (typically because order doesn't matter), we can use the now-public > macro. But places where we must keep the list in order by appending > remain open-coded until later patches. "now-public" suggests a pat

[PATCH v2 4/7] qapi: Use QAPI_LIST_PREPEND() where possible

2020-11-12 Thread Eric Blake
Anywhere we create a list of just one item or by prepending items (typically because order doesn't matter), we can use the now-public macro. But places where we must keep the list in order by appending remain open-coded until later patches. Note that as a side effect, this also performs a cleanup