From: Nicola Vetrini <nicola.vetrini@bugseng.com>
To: xen-devel@lists.xenproject.org
Cc: sstabellini@kernel.org, michal.orzel@amd.com,
xenia.ragiadakou@amd.com, ayan.kumar.halder@amd.com,
consulting@bugseng.com,
"Nicola Vetrini" <nicola.vetrini@bugseng.com>,
"Jan Beulich" <jbeulich@suse.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"Roger Pau Monné" <roger.pau@citrix.com>, "Wei Liu" <wl@xen.org>,
"Paul Durrant" <paul@xen.org>,
"George Dunlap" <george.dunlap@citrix.com>
Subject: [XEN PATCH 0/4] address violations of MISRA C:2012 Rule 5.3 on x86
Date: Thu, 27 Jul 2023 12:47:58 +0200 [thread overview]
Message-ID: <cover.1690449587.git.nicola.vetrini@bugseng.com> (raw)
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/emulate: move a variable declaration to address MISRA C:2012 Rule
5.3
x86/mm: mechanically rename variable to avoid shadowing
x86: avoid shadowing to address MISRA C:2012 Rule 5.3
xen/arch/x86/apic.c | 8 ++++----
xen/arch/x86/cpu/mcheck/mce.c | 12 ++++++------
xen/arch/x86/cpu/mwait-idle.c | 24 ++++++++++++------------
xen/arch/x86/domain.c | 2 +-
xen/arch/x86/e820.c | 6 +++---
xen/arch/x86/emul-i8254.c | 2 +-
xen/arch/x86/hvm/emulate.c | 6 +++---
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 | 6 +++---
xen/arch/x86/psr.c | 4 ++--
xen/arch/x86/traps.c | 4 ++--
xen/arch/x86/x86_emulate/x86_emulate.c | 14 ++++++--------
14 files changed, 49 insertions(+), 51 deletions(-)
--
2.34.1
next reply other threads:[~2023-07-27 10:48 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-27 10:47 Nicola Vetrini [this message]
2023-07-27 10:45 ` [XEN PATCH 3/4] x86/mm: mechanically rename variable to avoid shadowing Nicola Vetrini
2023-07-27 10:48 ` Nicola Vetrini
2023-07-27 15:34 ` Jan Beulich
2023-07-27 10:47 ` [XEN PATCH 1/4] x86: mechanically rename to address MISRA C:2012 Rule 5.3 Nicola Vetrini
2023-07-27 14:50 ` Jan Beulich
2023-07-27 15:00 ` Andrew Cooper
2023-07-27 15:18 ` Nicola Vetrini
2023-07-27 10:48 ` [XEN PATCH 2/4] x86/emulate: move a variable declaration " Nicola Vetrini
2023-07-27 15:06 ` Jan Beulich
2023-07-27 15:22 ` Nicola Vetrini
2023-07-27 15:31 ` Jan Beulich
2023-07-27 15:35 ` Nicola Vetrini
2023-07-27 10:48 ` [XEN PATCH 4/4] x86: avoid shadowing " Nicola Vetrini
2023-07-27 15:41 ` Jan Beulich
2023-07-27 15:58 ` Nicola Vetrini
2023-07-27 16:04 ` Jan Beulich
2023-07-27 10:48 ` [XEN PATCH 0/4] address violations of MISRA C:2012 Rule 5.3 on x86 Nicola Vetrini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1690449587.git.nicola.vetrini@bugseng.com \
--to=nicola.vetrini@bugseng.com \
--cc=andrew.cooper3@citrix.com \
--cc=ayan.kumar.halder@amd.com \
--cc=consulting@bugseng.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=michal.orzel@amd.com \
--cc=paul@xen.org \
--cc=roger.pau@citrix.com \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
--cc=xenia.ragiadakou@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.