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