> On 8 Jun 2023, at 18:40, Andrew Cooper <andrew.coop...@citrix.com> wrote: > > MASK_EXTR() and MASK_INSR() are a matching pair. Keep them together. > > Fixes: 56a7aaa16bfe ("tools: add physinfo arch_capabilities handling for Arm")
I don’t think this patch is fixing a bug: ### Fixes: If your patch fixes a bug in a specific commit, e.g. you found an issue using ``git bisect``, please use the `Fixes:` tag with the first 12 characters of the commit id, and the one line summary. > Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com> But it makes sense, so Reviewed-by: Luca Fancellu <luca.fance...@arm.com> > --- > CC: Anthony PERARD <anthony.per...@citrix.com> > CC: Juergen Gross <jgr...@suse.com> > CC: Luca Fancellu <luca.fance...@arm.com> > --- > tools/include/xen-tools/common-macros.h | 1 + > tools/libs/light/libxl_internal.h | 2 -- > 2 files changed, 1 insertion(+), 2 deletions(-) > > diff --git a/tools/include/xen-tools/common-macros.h > b/tools/include/xen-tools/common-macros.h > index d53b88182560..168691be0e93 100644 > --- a/tools/include/xen-tools/common-macros.h > +++ b/tools/include/xen-tools/common-macros.h > @@ -73,6 +73,7 @@ > #endif > > #define MASK_EXTR(v, m) (((v) & (m)) / ((m) & -(m))) > +#define MASK_INSR(v, m) (((v) * ((m) & -(m))) & (m)) > > #ifndef __must_check > #define __must_check __attribute__((__warn_unused_result__)) > diff --git a/tools/libs/light/libxl_internal.h > b/tools/libs/light/libxl_internal.h > index 8aba3e138909..61f4fe1dec55 100644 > --- a/tools/libs/light/libxl_internal.h > +++ b/tools/libs/light/libxl_internal.h > @@ -132,8 +132,6 @@ > > #define DIV_ROUNDUP(n, d) (((n) + (d) - 1) / (d)) > > -#define MASK_INSR(v, m) (((v) * ((m) & -(m))) & (m)) > - > #define LIBXL__LOGGING_ENABLED > > #ifdef LIBXL__LOGGING_ENABLED > -- > 2.30.2 >