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")
> +/* SAF-1-false-positive-cppcheck R20.7 argument as text substitution */
> #define __init_call(lvl) __used_section(".initcall" lvl ".init")
Would cppcheck also complain about
#define __init_call(lvl) __used_section(".initcall" #lvl ".init")
? If not, removing the double quotes at the two invocation sites to
balance the addition of # here might be the better route here.
Jan