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 with respect to expansions that > can possibly alter the semantics of the passed-in macro parameter. > > No functional change. > > Signed-off-by: Nicola Vetrini <nicola.vetr...@bugseng.com> > --- > In this case the use of parentheses can detect misuses of the COMPILE_CHECK > macro for the fn argument that happen to pass the compile-time check > (see e.g. https://godbolt.org/z/n4zTdz595).
While readability suffers a little, I'm okay with the approach taken: Reviewed-by: Jan Beulich <jbeul...@suse.com> I'd like to give in particular Andrew some time to possibly object, though. And anyway I don't think we want to rush any more Misra changes into 4.19. Jan