]> xenbits.xensource.com Git - xen.git/commit
x86/mcheck: address violations of MISRA C:2012 Rule 7.2
authorSimone Ballarin <simone.ballarin@bugseng.com>
Wed, 13 Sep 2023 07:48:49 +0000 (09:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 13 Sep 2023 07:48:49 +0000 (09:48 +0200)
commite29cb1f96f8ac541bcd91232da27dabcde4cf1c3
treefe1aec2dbd4478c658907b0090241aaf02bffdc8
parent75f42e0401c4c6b10248f5e8b7530887d34bfb9c
x86/mcheck: address violations of MISRA C:2012 Rule 7.2

The xen sources contains violations of MISRA C:2012 Rule 7.2 whose
headline states:
"A 'u' or 'U' suffix shall be applied to all integer constants
that are represented in an unsigned type".

Add the 'U' suffix to integers literals with unsigned type.

For the sake of uniformity, the following change is made:
- add the 'U' suffix to all first macro's arguments

Signed-off-by: Simone Ballarin <simone.ballarin@bugseng.com>
Signed-off-by: Gianluca Luparini <gianluca.luparini@bugseng.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/mcheck/mce-apei.c