On 20.06.2023 12:34, Simone Ballarin wrote: > From: Gianluca Luparini <gianluca.lupar...@bugseng.com> > > 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". > > I propose to use "U" as a suffix to explicitly state when an integer constant > is represented in an unsigned type. > For homogeneity, I also added the "U" suffix in some cases that the tool > didn't report as violations. > > Signed-off-by: Simone Ballarin <simone.balla...@bugseng.com> > --- > xen/arch/x86/include/asm/x86_64/efibind.h | 10 +++++-----
This file as well as ... > xen/common/efi/boot.c | 8 ++++---- > xen/common/efi/runtime.c | 2 +- > xen/include/efi/efiapi.h | 10 +++++----- > xen/include/efi/efidef.h | 2 +- > xen/include/efi/efiprot.h | 22 +++++++++++----------- ... the last three here are imported from the gnu-efi package. I'm wary of touching them, and thus getting them more out of sync with their original than strictly necessary. To allow the other changes to go in no matter what, I'd like to suggest splitting the patch. Jan