[XEN PATCH v2 0/4] x86: address some violations of MISRA C:2012 Rule 5.3

Nicola Vetrini posted 4 patches 8 months, 4 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/cover.1691135862.git.nicola.vetrini@bugseng.com
xen/arch/x86/cpu/mcheck/barrier.c |  8 ++++----
xen/arch/x86/cpu/mcheck/barrier.h | 14 +++++++-------
xen/arch/x86/hvm/hvm.c            |  2 +-
xen/arch/x86/hvm/mtrr.c           | 32 +++++++++++++++----------------
xen/arch/x86/include/asm/irq.h    |  2 +-
xen/arch/x86/include/asm/setup.h  |  2 +-
xen/arch/x86/io_apic.c            | 10 +++++-----
xen/arch/x86/irq.c                | 12 ++++++------
xen/arch/x86/msi.c                |  4 ++--
xen/arch/x86/setup.c              |  3 +--
xen/include/xen/irq.h             |  2 +-
11 files changed, 45 insertions(+), 46 deletions(-)
[XEN PATCH v2 0/4] x86: address some violations of MISRA C:2012 Rule 5.3
Posted by Nicola Vetrini 8 months, 4 weeks ago
Some variables are renamed or deleted in this series to avoid shadowing, which
violates MISRA C:2012 Rule 5.3, whose headline is:
"An identifier declared in an inner scope shall not hide an
identifier declared in an outer scope".

---
Changes in v2:
- Addressed comments on patches 1 and 2. Patches 3 and 4 are unchanged.

Nicola Vetrini (4):
  x86/mce: address MISRA C:2012 Rule 5.3
  x86/mtrr: address MISRA C:2012 Rule 5.3
  x86/irq: rename variable to address MISRA C:2012 Rule 5.3
  x86/setup: address MISRA C:2012 Rule 5.3

 xen/arch/x86/cpu/mcheck/barrier.c |  8 ++++----
 xen/arch/x86/cpu/mcheck/barrier.h | 14 +++++++-------
 xen/arch/x86/hvm/hvm.c            |  2 +-
 xen/arch/x86/hvm/mtrr.c           | 32 +++++++++++++++----------------
 xen/arch/x86/include/asm/irq.h    |  2 +-
 xen/arch/x86/include/asm/setup.h  |  2 +-
 xen/arch/x86/io_apic.c            | 10 +++++-----
 xen/arch/x86/irq.c                | 12 ++++++------
 xen/arch/x86/msi.c                |  4 ++--
 xen/arch/x86/setup.c              |  3 +--
 xen/include/xen/irq.h             |  2 +-
 11 files changed, 45 insertions(+), 46 deletions(-)

--
2.34.1