Skip to content

xen: address MISRA C:2012 Rule 5.3

Nicola Vetrini xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 33 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6x86: rename variable 'e820' to address MISRA C:2012 Rule 5.3xen/arch/x86/dom0_build.c xen/arch/x86/e820.c xen/arch/x86/guest/xen/xen.c +8 more+89 -8814 replies
2/6libelf: address MISRA C:2012 Rule 5.3xen/common/libelf/libelf-tools.c+12 -123 replies
3/6xen/delay: address MISRA C:2012 Rule 5.3.xen/include/xen/delay.h+1 -17 replies
4/6x86/include: address MISRA C:2012 Rule 5.3.xen/arch/x86/include/asm/mpspec.h+1 -12 replies
5/6x86/xstate: address MISRA C:2012 Rule 5.3xen/arch/x86/xstate.c+15 -153 replies
6/6x86: refactor macros in 'xen-mca.h' to address MISRA C:2012 Rule 5.3xen/include/public/arch-x86/xen-mca.h+19 -194 replies

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchStefano Stabellini
1/6
2/6R-b
3/6R-b
4/6
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [XEN PATCH 0/6] xen: address MISRA C:2012 Rule 5.3

This series addresses shadowing issues to resolve violations of Rule 5.3, whose headline states:
"An identifier declared in an inner scope shall not hide an identifier declared in an outer scope". To do this, suitable renames are made. In some cases global objects are modified, while other modifications concern local variables, possibly lessening the probability of future clashes from occurring, by suffixing variables in some macros.

No functional change.

Nicola Vetrini (6):
x86: rename variable 'e820' to address MISRA C:2012 Rule 5.3
libelf: address MISRA C:2012 Rule 5.3
xen/delay: address MISRA C:2012 Rule 5.3.
x86/include: address MISRA C:2012 Rule 5.3.
x86/xstate: address MISRA C:2012 Rule 5.3
x86: refactor macros in 'xen-mca.h' to address MISRA C:2012 Rule 5.3

 xen/arch/x86/dom0_build.c                | 10 ++--
 xen/arch/x86/e820.c                      | 66 ++++++++++++------------
 xen/arch/x86/guest/xen/xen.c             |  4 +-
 xen/arch/x86/hvm/dom0_build.c            |  6 +--
 xen/arch/x86/include/asm/e820.h          |  2 +-
 xen/arch/x86/include/asm/mpspec.h        |  2 +-
 xen/arch/x86/mm.c                        | 49 +++++++++---------
 xen/arch/x86/numa.c                      |  8 +--
 xen/arch/x86/setup.c                     | 22 ++++----
 xen/arch/x86/srat.c                      |  6 +--
 xen/arch/x86/x86_64/mmconf-fam10h.c      |  2 +-
 xen/arch/x86/xstate.c                    | 30 +++++------
 xen/common/libelf/libelf-tools.c         | 24 ++++-----
 xen/drivers/passthrough/amd/iommu_acpi.c |  2 +-
 xen/include/public/arch-x86/xen-mca.h    | 38 +++++++-------
 xen/include/xen/delay.h                  |  2 +-
 16 files changed, 137 insertions(+), 136 deletions(-)

--
2.34.1