mbox series

[XEN,v2,0/3] xen: address MISRA C:2012 Rule 5.3

Message ID cover.1690893696.git.nicola.vetrini@bugseng.com (mailing list archive)
Headers show
Series xen: address MISRA C:2012 Rule 5.3 | expand

Message

Nicola Vetrini Aug. 1, 2023, 12:47 p.m. UTC
Rule 5.3 has the following headline:
"An identifier declared in an inner scope shall not hide an
identifier declared in an outer scope".

The following two strategies are adopted to deal with some violations
of this rule:
- renaming of local variables, functions or parameters;
- removal of unnecessary declarations.

No functional changes.

Changes in v2:
- Patches 1/4 and 2/4 from the previous version of this patch
  (https://lore.kernel.org/xen-devel/cover.1690810346.git.nicola.vetrini@bugseng.com/)
	are already committed to staging, therefore are excluded from this series.

Nicola Vetrini (3):
  xen/common: address MISRA C:2012 Rule 5.3
  drivers/char: address MISRA C:2012 Rule 5.3
  arm/efi: address MISRA C:2012 Rule 5.3

 xen/arch/arm/efi/efi-boot.h  | 84 ++++++++++++++++++------------------
 xen/common/compat/memory.c   |  7 ++-
 xen/common/numa.c            | 20 ++++-----
 xen/drivers/char/ehci-dbgp.c |  4 +-
 xen/drivers/char/ns16550.c   |  6 +--
 5 files changed, 59 insertions(+), 62 deletions(-)

--
2.34.1