From: Simone Ballarin <simone.ballarin@bugseng.com>
To: xen-devel@lists.xenproject.org
Cc: consulting@bugseng.com, sstabellini@kernel.org,
Simone Ballarin <simone.ballarin@bugseng.com>,
Julien Grall <julien@xen.org>,
Bertrand Marquis <bertrand.marquis@arm.com>,
Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>,
Doug Goldstein <cardoe@cardoe.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
George Dunlap <george.dunlap@citrix.com>,
Jan Beulich <jbeulich@suse.com>, Wei Liu <wl@xen.org>,
Dario Faggioli <dfaggioli@suse.com>
Subject: [XEN PATCH 0/4][for-4.19] xen: address violations of Rule 13.1
Date: Wed, 18 Oct 2023 16:18:47 +0200 [thread overview]
Message-ID: <cover.1697638210.git.simone.ballarin@bugseng.com> (raw)
This series contains some changes and deviation to address
reports of MISRA C:2012 Rule 13.1:
Initializer lists shall not contain persistent side effects
Some expressions with side-effects have been moved outside the
initializer lists, others have been deviated.
Function calls do not necessarily have side-effects, in these cases this
path propose to add GCC pure or const attributes whenever possible.
Function attributes pure and const do not need to be added as GCC
attributes, they can be added using ECLAIR configurations.
Simone Ballarin (4):
xen/arm: address violations of MISRA C:2012 Rule 13.1
automation/eclair: add deviations and call properties.
xen/include: add pure and const attributes
xen: address violations of MISRA C:2012 Rule 13.1
.../eclair_analysis/ECLAIR/call_properties.ecl | 10 ++++++++++
automation/eclair_analysis/ECLAIR/deviations.ecl | 13 +++++++++++++
docs/misra/deviations.rst | 11 +++++++++++
xen/arch/arm/device.c | 6 +++---
xen/arch/arm/guestcopy.c | 12 ++++++++----
xen/arch/arm/include/asm/current.h | 2 +-
xen/common/sched/core.c | 16 ++++++++++++----
xen/drivers/char/ns16550.c | 4 +++-
xen/include/xen/pdx.h | 2 +-
xen/include/xen/typesafe.h | 4 ++--
10 files changed, 64 insertions(+), 16 deletions(-)
--
2.34.1
next reply other threads:[~2023-10-18 14:19 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-18 14:18 Simone Ballarin [this message]
2023-10-18 14:18 ` [XEN PATCH 1/4] xen/arm: address violations of MISRA C:2012 Rule 13.1 Simone Ballarin
2023-10-18 15:03 ` Julien Grall
2023-10-19 1:01 ` Stefano Stabellini
2023-10-19 7:34 ` Simone Ballarin
2023-10-19 8:19 ` Julien Grall
2023-10-19 8:43 ` Simone Ballarin
2023-10-19 10:11 ` Julien Grall
2023-10-19 11:10 ` Simone Ballarin
2023-10-19 12:30 ` Julien Grall
2023-10-19 13:24 ` Simone Ballarin
2023-10-19 18:30 ` Stefano Stabellini
2023-10-20 8:28 ` Julien Grall
2023-10-23 15:10 ` Simone Ballarin
2023-10-18 14:18 ` [XEN PATCH 2/4] automation/eclair: add deviations and call properties Simone Ballarin
2023-10-19 0:57 ` Stefano Stabellini
2023-10-19 7:44 ` Simone Ballarin
2023-10-19 8:26 ` Julien Grall
2023-10-19 9:04 ` Simone Ballarin
2023-10-18 14:18 ` [XEN PATCH 3/4] xen/include: add pure and const attributes Simone Ballarin
2023-10-19 1:02 ` Stefano Stabellini
2023-10-19 9:07 ` Simone Ballarin
2023-10-23 13:34 ` Jan Beulich
2023-10-23 13:51 ` Andrew Cooper
2023-10-23 14:09 ` Jan Beulich
2023-10-23 15:23 ` Simone Ballarin
2023-10-23 15:33 ` Jan Beulich
2023-10-23 22:05 ` Stefano Stabellini
2023-10-23 22:12 ` Stefano Stabellini
2023-10-24 6:24 ` Jan Beulich
2024-02-23 1:32 ` Stefano Stabellini
2024-02-23 7:36 ` Jan Beulich
2024-02-23 22:36 ` Stefano Stabellini
2024-02-26 7:33 ` Jan Beulich
2024-02-26 23:48 ` Stefano Stabellini
2024-02-27 7:23 ` Jan Beulich
2024-02-28 2:14 ` Stefano Stabellini
2023-10-18 14:18 ` [XEN PATCH 4/4] xen: address violations of MISRA C:2012 Rule 13.1 Simone Ballarin
2023-10-19 1:06 ` Stefano Stabellini
2023-10-19 9:18 ` Simone Ballarin
2023-10-19 18:35 ` Stefano Stabellini
2023-10-19 9:35 ` Jan Beulich
2023-10-19 11:12 ` Simone Ballarin
2023-10-19 11:19 ` Jan Beulich
2023-10-19 13:36 ` Simone Ballarin
2023-10-19 18:35 ` Stefano Stabellini
2023-10-23 14:03 ` 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.1697638210.git.simone.ballarin@bugseng.com \
--to=simone.ballarin@bugseng.com \
--cc=Volodymyr_Babchuk@epam.com \
--cc=andrew.cooper3@citrix.com \
--cc=bertrand.marquis@arm.com \
--cc=cardoe@cardoe.com \
--cc=consulting@bugseng.com \
--cc=dfaggioli@suse.com \
--cc=george.dunlap@citrix.com \
--cc=jbeulich@suse.com \
--cc=julien@xen.org \
--cc=sstabellini@kernel.org \
--cc=wl@xen.org \
--cc=xen-devel@lists.xenproject.org \
/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.