Re: [XEN PATCH 5/9] x86/cpu-policy: address violations of MISRA C Rule 10.1

2023-10-09 Thread Nicola Vetrini
On 06/10/2023 19:57, Andrew Cooper wrote: On 06/10/2023 9:26 am, Nicola Vetrini wrote: The COUNT_LEAVES macro is introduced to avoid using an essentially boolean value in a subtraction. No functional change. Signed-off-by: Nicola Vetrini --- xen/include/xen/lib/x86/cpu-policy.h | 13 +++-

Re: [XEN PATCH 5/9] x86/cpu-policy: address violations of MISRA C Rule 10.1

2023-10-06 Thread Andrew Cooper
On 06/10/2023 9:26 am, Nicola Vetrini wrote: > The COUNT_LEAVES macro is introduced to avoid using an essentially > boolean value in a subtraction. > > No functional change. > > Signed-off-by: Nicola Vetrini > --- > xen/include/xen/lib/x86/cpu-policy.h | 13 +++-- > 1 file changed, 7 inse

[XEN PATCH 5/9] x86/cpu-policy: address violations of MISRA C Rule 10.1

2023-10-06 Thread Nicola Vetrini
The COUNT_LEAVES macro is introduced to avoid using an essentially boolean value in a subtraction. No functional change. Signed-off-by: Nicola Vetrini --- xen/include/xen/lib/x86/cpu-policy.h | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/xen/include/xen/lib/x