Re: [XEN PATCH 03/10] xen/xsm: add parentheses to comply with MISRA C Rule 20.7

2024-03-18 Thread Stefano Stabellini
On Mon, 18 Mar 2024, Nicola Vetrini wrote: > MISRA C Rule 20.7 states: "Expressions resulting from the expansion > of macro parameters shall be enclosed in parentheses". Therefore, some > macro definitions should gain additional parentheses to ensure that all > current and future users will be

[XEN PATCH 03/10] xen/xsm: add parentheses to comply with MISRA C Rule 20.7

2024-03-18 Thread Nicola Vetrini
MISRA C Rule 20.7 states: "Expressions resulting from the expansion of macro parameters shall be enclosed in parentheses". Therefore, some macro definitions should gain additional parentheses to ensure that all current and future users will be safe with respect to expansions that can possibly