[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XEN PATCH 05/13] xen/common: fixed violations of MISRA C:2012 Rule 7.2
Hi, On 20/06/2023 13:43, Jan Beulich wrote: On 20.06.2023 12:34, Simone Ballarin wrote:From: Gianluca Luparini <gianluca.luparini@xxxxxxxxxxx> 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. Signed-off-by: Simone Ballarin <simone.ballarin@xxxxxxxxxxx> --- xen/common/device_tree.c | 4 ++-- xen/include/xen/libfdt/fdt.h | 2 +- xen/include/xen/libfdt/libfdt.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)I think me and a few other people being on Cc here is attributed to the (misleading) title. The set of touched files fully maps to "DEVICE TREE" in ./MAINTAINERS afaict, which the prefix in the title would then also be nice to express. That said I'm not sure whether libfdt code actually wants touching this way. It doesn't want to be touched because this is code we imported as-is from an external project. In fact this is already part of the excluded list. Simone, please have a look at docs/misra/exclude-list.json to check if a file is in-scope for MISRA. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |