On 27.01.2022 07:30, Juergen Gross wrote: > Today RING_HAS_UNCONSUMED_*() macros are returning the number of > unconsumed requests or responses instead of a boolean as the name of > the macros would imply. > > As this "feature" is already being used, rename the macros to > XEN_RING_NR_UNCONSUMED_*() and define the RING_HAS_UNCONSUMED_*() macros > by using the new XEN_RING_NR_UNCONSUMED_*() macros. In order to avoid > future misuse let RING_HAS_UNCONSUMED_*() optionally really return a > boolean (can be activated by defining XEN_RING_HAS_UNCONSUMED_IS_BOOL). > > Note that the known misuses need to be switched to the new > XEN_RING_NR_UNCONSUMED_*() macros when using the RING_HAS_UNCONSUMED_*() > variants returning a boolean value. > > Cc: Roger Pau Monne <roger....@citrix.com> > Cc: Manuel Bouyer <bou...@antioche.eu.org> > Cc: Simon Kuenzer <simon.kuen...@neclab.eu> > Cc: Paul Durrant <p...@xen.org> > Signed-off-by: Juergen Gross <jgr...@suse.com>
Reviewed-by: Jan Beulich <jbeul...@suse.com>