]> xenbits.xensource.com Git - xen.git/commit
x86_64/cpu_idle: address violations of MISRA C Rule 20.7
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Tue, 21 May 2024 14:01:17 +0000 (16:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 21 May 2024 14:01:17 +0000 (16:01 +0200)
commitced21fbb2842ac4655048bdee56232974ff9ff9c
tree2105441b4ff0664dc699ee35d8f0e707d61fb5d7
parent1b0b050bd6713454aedec7c3c125c39f9c375bee
x86_64/cpu_idle: address violations of MISRA C Rule 20.7

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.vetrini@bugseng.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_64/cpu_idle.c