xen/cpu: fix MISRA C 2012 Rule 20.7 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Tue, 9 Aug 2022 09:51:14 +0000 (11:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 9 Aug 2022 09:51:14 +0000 (11:51 +0200)
commite99709a86d59b3a9319f7b00880abd23c62251f1
tree97f0f1740290497e71fd463926453705f61ec208
parentf3eafc58f45448d0ce7c7544bdef50d6f0d7d3d6
xen/cpu: fix MISRA C 2012 Rule 20.7 violation

In MASK_DECLARE_ macros, the macro parameter 'x' 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>
While there add the blanks missing around the + operators involved.

Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/common/cpu.c