Re: [XEN PATCH] xen/compiler: address violation of MISRA C Rule 20.9

2024-04-05 Thread Jan Beulich
On 05.04.2024 14:59, Nicola Vetrini wrote: > The rule states: > "All identifiers used in the controlling expression of #if or #elif > preprocessing directives shall be #define'd before evaluation". > In this case, using defined(identifier) is a MISRA-compliant > way to achieve the same effect. >

[XEN PATCH] xen/compiler: address violation of MISRA C Rule 20.9

2024-04-05 Thread Nicola Vetrini
The rule states: "All identifiers used in the controlling expression of #if or #elif preprocessing directives shall be #define'd before evaluation". In this case, using defined(identifier) is a MISRA-compliant way to achieve the same effect. Signed-off-by: Nicola Vetrini --- This is the only