Re: [XEN PATCH 4/6] x86emul: address violations of MISRA C Rule 20.7

2024-06-13 Thread Nicola Vetrini
On 2024-06-12 12:36, Jan Beulich wrote: On 12.06.2024 11:52, Nicola Vetrini wrote: On 2024-06-12 11:19, Jan Beulich wrote: On 11.06.2024 17:53, Nicola Vetrini wrote: MISRA C Rule 20.7 states: "Expressions resulting from the expansion of macro parameters shall be enclosed in parentheses". There

Re: [XEN PATCH 4/6] x86emul: address violations of MISRA C Rule 20.7

2024-06-12 Thread Jan Beulich
On 12.06.2024 11:52, Nicola Vetrini wrote: > On 2024-06-12 11:19, Jan Beulich wrote: >> On 11.06.2024 17:53, 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

Re: [XEN PATCH 4/6] x86emul: address violations of MISRA C Rule 20.7

2024-06-12 Thread Nicola Vetrini
On 2024-06-12 11:19, Jan Beulich wrote: On 11.06.2024 17:53, 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

Re: [XEN PATCH 4/6] x86emul: address violations of MISRA C Rule 20.7

2024-06-12 Thread Jan Beulich
On 11.06.2024 17:53, 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 safe