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

Nicola Vetrini posted 4 patches 9 months, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/cover.1690788513.git.nicola.vetrini@bugseng.com
There is a newer version of this series
xen/arch/x86/cpu/mcheck/mce.c          |  8 ++++----
xen/arch/x86/domain.c                  |  2 +-
xen/arch/x86/emul-i8254.c              |  2 +-
xen/arch/x86/include/asm/e820.h        |  2 +-
xen/arch/x86/include/asm/hvm/save.h    |  8 ++++----
xen/arch/x86/include/asm/hvm/vpt.h     |  2 +-
xen/arch/x86/mm/p2m.c                  |  2 --
xen/arch/x86/psr.c                     |  4 ++--
xen/arch/x86/traps.c                   |  5 ++---
xen/arch/x86/x86_emulate/x86_emulate.c | 14 ++++++--------
10 files changed, 22 insertions(+), 27 deletions(-)
[XEN PATCH v2 0/4] x86: address MISRA C:2012 Rule 5.3
Posted by Nicola Vetrini 9 months, 2 weeks ago
This series aims to address some violations of MISRA C:2012 Rule 5.3:
"An identifier declared in an inner scope shall not hide an
identifier declared in an outer scope".

To resolve such violations two strategies have been applied:

1. rename several function parameters or local variables;
2. remove a local variable declaration in an inner scope, if
   using the outer variable does not change the semantics of the function.

Nicola Vetrini (4):
  x86: mechanically rename to address MISRA C:2012 Rule 5.3
  x86/mm: remove variable to avoid shadowing
  x86emul: avoid shadowing to address MISRA C:2012 Rule 5.3
  x86emul: remove local variable to address MISRA C:2012 Rule 5.3

 xen/arch/x86/cpu/mcheck/mce.c          |  8 ++++----
 xen/arch/x86/domain.c                  |  2 +-
 xen/arch/x86/emul-i8254.c              |  2 +-
 xen/arch/x86/include/asm/e820.h        |  2 +-
 xen/arch/x86/include/asm/hvm/save.h    |  8 ++++----
 xen/arch/x86/include/asm/hvm/vpt.h     |  2 +-
 xen/arch/x86/mm/p2m.c                  |  2 --
 xen/arch/x86/psr.c                     |  4 ++--
 xen/arch/x86/traps.c                   |  5 ++---
 xen/arch/x86/x86_emulate/x86_emulate.c | 14 ++++++--------
 10 files changed, 22 insertions(+), 27 deletions(-)

--
2.34.1