Re: [RFC PATCH 08/18] xen: cppcheck: misra rule 20.7 deviation on init.h

2022-12-20 Thread Jan Beulich
On 20.12.2022 09:50, Luca Fancellu wrote: > --- a/xen/include/xen/init.h > +++ b/xen/include/xen/init.h > @@ -15,6 +15,7 @@ > #define __initconstrel__section(".init.rodata.rel") > #define __exitdata__used_section(".exit.data") > #define __initsetup __used_section(".init.setup")

[RFC PATCH 08/18] xen: cppcheck: misra rule 20.7 deviation on init.h

2022-12-20 Thread Luca Fancellu
Cppcheck has found violations of rule 20.7 for the macros __init_call, presmp_initcall, __initcall and __exitcall. For the first one, the macro parameter is never used as an expression, it is used for text substitution but cppcheck is not taking into account the context of use of the argument, so w