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>,
"Julien Grall" <julien@xen.org>,
"Bertrand Marquis" <bertrand.marquis@arm.com>,
"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
"Andrew Cooper" <andrew.cooper3@citrix.com>,
"George Dunlap" <george.dunlap@citrix.com>,
"Jan Beulich" <jbeulich@suse.com>, "Wei Liu" <wl@xen.org>,
"Roger Pau Monné" <roger.pau@citrix.com>
Subject: [XEN PATCH 0/8] xen: address MISRA C:2012 Rule 8.4
Date: Wed, 9 Aug 2023 13:02:33 +0200 [thread overview]
Message-ID: <cover.1691575243.git.nicola.vetrini@bugseng.com> (raw)
Rule states the following:
"A compatible declaration shall be visible when an object or function with
external linkage is defined".
This series deals with violations concerning functions and variables used by C
code (thus not used only within asm). The resolution strategies are as follows:
1. make the functions/variables static
2. include the header that contains the compatible declaration, or add one in
the header if that's not the case.
No functional change.
Additional notes:
- other cases, such as functions/variables used only in asm code will be possibly
dealt with in future patches.
- functions in 'gcov_base.c' are deviated, since they are called only from code
generated by gcc in a particular non-release build configuration;
- variables in 'xen/include/acpi/acglobal.h' are deviated temporarily, since
it's uncertain whether modifying the include pattern to be compliant with the
rule would introduce subtle bugs.
Nicola Vetrini (8):
arm/efi: address MISRA C:2012 Rule 8.4
xen/memory: address MISRA C:2012 Rule 8.4
xen: address MISRA C:2012 Rule 8.4
xen/arm: address MISRA C:2012 Rule 8.4
x86: address MISRA C:2012 Rule 8.4
xen/arm: mm: address MISRA C:2012 Rule 8.4
x86/i8259: address MISRA C:2012 Rule 8.4
x86/nmi: address MISRA C:2012 Rule 8.4
xen/arch/arm/efi/efi-boot.h | 2 +-
xen/arch/arm/include/asm/mm.h | 3 +++
xen/arch/arm/setup.c | 1 +
xen/arch/arm/time.c | 1 +
xen/arch/x86/cpu/mcheck/mce.c | 2 +-
xen/arch/x86/cpu/mcheck/mce_amd.c | 2 +-
xen/arch/x86/cpu/microcode/core.c | 2 +-
xen/arch/x86/i8259.c | 1 +
xen/arch/x86/nmi.c | 3 ++-
xen/arch/x86/spec_ctrl.c | 4 ++--
xen/common/kernel.c | 2 +-
xen/common/memory.c | 2 +-
xen/include/xen/cper.h | 3 +--
xen/include/xen/time.h | 1 +
14 files changed, 18 insertions(+), 11 deletions(-)
--
2.34.1
next reply other threads:[~2023-08-09 11:03 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-09 11:02 Nicola Vetrini [this message]
2023-08-09 11:02 ` [XEN PATCH 1/8] arm/efi: address MISRA C:2012 Rule 8.4 Nicola Vetrini
2023-08-09 13:46 ` Luca Fancellu
2023-08-09 20:03 ` Stefano Stabellini
2023-08-09 11:02 ` [XEN PATCH 2/8] xen/memory: " Nicola Vetrini
2023-08-09 13:34 ` Luca Fancellu
2023-08-09 13:41 ` Jan Beulich
2023-08-09 20:04 ` Stefano Stabellini
2023-08-09 11:02 ` [XEN PATCH 3/8] xen: " Nicola Vetrini
2023-08-09 13:50 ` Luca Fancellu
2023-08-09 14:06 ` Jan Beulich
2023-08-09 14:14 ` Luca Fancellu
2023-08-09 20:06 ` Stefano Stabellini
2023-08-09 14:14 ` Nicola Vetrini
2023-08-09 11:02 ` [XEN PATCH 4/8] xen/arm: " Nicola Vetrini
2023-08-09 12:42 ` Jan Beulich
2023-08-09 12:51 ` Luca Fancellu
2023-08-09 13:25 ` Nicola Vetrini
2023-08-09 13:08 ` Nicola Vetrini
2023-08-09 20:10 ` Stefano Stabellini
2023-08-09 11:02 ` [XEN PATCH 5/8] x86: " Nicola Vetrini
2023-08-09 13:48 ` Jan Beulich
2023-08-09 11:02 ` [XEN PATCH 6/8] xen/arm: mm: " Nicola Vetrini
2023-08-09 13:43 ` Luca Fancellu
2023-08-09 20:11 ` Stefano Stabellini
2023-08-09 11:02 ` [XEN PATCH 7/8] x86/i8259: " Nicola Vetrini
2023-08-09 12:52 ` Jan Beulich
2023-08-09 14:17 ` Nicola Vetrini
2023-08-09 14:22 ` Jan Beulich
2023-08-09 20:15 ` Stefano Stabellini
2023-08-10 8:33 ` Jan Beulich
2023-08-09 11:02 ` [XEN PATCH 8/8] x86/nmi: " Nicola Vetrini
2023-08-09 12:58 ` Jan Beulich
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.1691575243.git.nicola.vetrini@bugseng.com \
--to=nicola.vetrini@bugseng.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=ayan.kumar.halder@amd.com \
--cc=bertrand.marquis@arm.com \
--cc=consulting@bugseng.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=michal.orzel@amd.com \
--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.