All of lore.kernel.org
 help / color / mirror / Atom feed
* [XEN PATCH v2 0/3] fix violations of MISRA C:2012 Rule 3.1
@ 2023-06-19  9:56 Nicola Vetrini
  2023-06-19  9:56 ` [XEN PATCH v2 1/3] xen/arch/arm: " Nicola Vetrini
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Nicola Vetrini @ 2023-06-19  9:56 UTC (permalink / raw)
  To: xen-devel
  Cc: michal.orzel, xenia.ragiadakou, ayan.kumar.halder, consulting,
	Nicola Vetrini, Stefano Stabellini, Julien Grall,
	Bertrand Marquis, Volodymyr Babchuk, Rahul Singh, Andrew Cooper,
	George Dunlap, Jan Beulich, Wei Liu

Hi all,

This patch series is about the violations present in the Xen sources of
Rule 3.1 from MISRA C:2012, whose headline states:
"The character sequences '/*' and '//' shall not be used within a comment".

In the context of the effort to bring xen into compliance w.r.t.
MISRA C:2012, and Rule 3.1 being already approved for the project (as
evidenced by `docs/misra/rules.rst'), these violations need to be fixed.

Most of the violations are due to the presence of links to webpages within
C-style comment blocks, such as:

xen/arch/arm/include/asm/smccc.h:37.1-41.3
/*
 * This file provides common defines for ARM SMC Calling Convention as
 * specified in
 * http://infocenter.arm.com/help/topic/com.arm.doc.den0028a/index.html
*/

In this case, I propose to deviate all of these occurrences with a
project deviation to be captured by a tool configuration
(not included in any patch from this series).

There are, however, a few other violations that do not fall under this
category, which are the focus of the following set of patches. They either:

1. remove the nested '//' character sequence within a block comment;
2. remove the surrounding comment.

Thanks,
  Nicola

Nicola Vetrini (3):
  xen/arch/arm: fix violations of MISRA C:2012 Rule 3.1
  xen/drivers/passthrough/arm/smmu-v3.c: fix violations of MISRA C:2012
    Rule 3.1
  xen: fix violations of MISRA C:2012 Rule 3.1

 xen/arch/arm/include/asm/arm32/flushtlb.h | 8 ++++----
 xen/arch/arm/include/asm/arm64/flushtlb.h | 8 ++++----
 xen/common/xmalloc_tlsf.c                 | 3 ---
 xen/drivers/passthrough/arm/smmu-v3.c     | 4 ++--
 xen/include/xen/atomic.h                  | 2 +-
 5 files changed, 11 insertions(+), 14 deletions(-)

-- 
2.34.1



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-06-20 13:56 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-19  9:56 [XEN PATCH v2 0/3] fix violations of MISRA C:2012 Rule 3.1 Nicola Vetrini
2023-06-19  9:56 ` [XEN PATCH v2 1/3] xen/arch/arm: " Nicola Vetrini
2023-06-19 10:01   ` Julien Grall
2023-06-19 10:25     ` Jan Beulich
2023-06-19 10:29       ` Julien Grall
2023-06-20 13:56         ` Nicola Vetrini
2023-06-19  9:56 ` [XEN PATCH v2 2/3] xen/drivers/passthrough/arm/smmu-v3.c: " Nicola Vetrini
2023-06-19 10:10   ` Julien Grall
2023-06-20  8:06     ` Nicola Vetrini
2023-06-19  9:56 ` [XEN PATCH v2 3/3] xen: " Nicola Vetrini
2023-06-19 10:29   ` Jan Beulich
2023-06-20  8:00     ` Nicola Vetrini

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.