]> xenbits.xensource.com Git - xen.git/commit
x86/irq: parenthesize negative constants
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Mon, 11 Mar 2024 08:35:50 +0000 (09:35 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 11 Mar 2024 08:35:50 +0000 (09:35 +0100)
commitacb13d1b819e5e3fc1ac217d43f297a7eec5a81e
tree1c421d14e7aa44634362f93b94011fb8a134b9f6
parent22d0e3487f6a44ad7aa132f25cc41f42e3f546e3
x86/irq: parenthesize negative constants

These constants are parenthesized to avoid them from
possibly influencing the semantics of the constructs where it is used,
especially inside macros invocations.

This also resolves some violations of MISRA C Rule 20.7
("Expressions resulting from the expansion of macro parameters shall
be enclosed in parentheses").

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/include/asm/irq.h