xen/arm: regs: Fix MISRA C 2012 Rule 20.7 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 8 Aug 2022 09:48:37 +0000 (12:48 +0300)
committerStefano Stabellini <stefano.stabellini@amd.com>
Tue, 9 Aug 2022 21:47:47 +0000 (14:47 -0700)
commitea2353a7fbdabeb5f698ac53579dec1c8ea9f77a
tree5ec5c4ac88d4f6bc95b6d6bbf708a8cbd8dbdcea
parente83cd54611fec5b7a539fa1281a14319143490e6
xen/arm: regs: Fix MISRA C 2012 Rule 20.7 violation

In macro psr_mode(), the macro parameter 'm' is used as expression and
therefore it is good to be enclosed in parentheses to prevent against
unintended expansions.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Rahul Singh <rahul.singh@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/include/asm/regs.h