All of lore.kernel.org
 help / color / mirror / Atom feed
* [XEN PATCH][for-4.19 0/2] address violations of MISRA C:2012 Rule 11.9
@ 2023-10-05  8:45 Nicola Vetrini
  2023-10-05  8:45 ` [XEN PATCH][for-4.19 1/2] xen: introduce a deviation for " Nicola Vetrini
  2023-10-05  8:45 ` [XEN PATCH][for-4.19 2/2] xen/spinlock: fix use of 0 as a null pointer constant Nicola Vetrini
  0 siblings, 2 replies; 11+ messages in thread
From: Nicola Vetrini @ 2023-10-05  8:45 UTC (permalink / raw)
  To: xen-devel
  Cc: sstabellini, michal.orzel, xenia.ragiadakou, ayan.kumar.halder,
	consulting, jbeulich, andrew.cooper3, roger.pau, Nicola Vetrini,
	Simone Ballarin, Doug Goldstein, George Dunlap, Julien Grall,
	Wei Liu

Rule 11.9 forbids the usage of '0' as a null pointer constant, therefore uses of
this pattern have been amended. One exception, recorded in rules.rst, is in
__ACCESS_ONCE to do a scalar type check.

The series only touches common headers, therefore it should be safe to include
in the for-4.19 branch.

Nicola Vetrini (2):
  xen: introduce a deviation for Rule 11.9
  xen/spinlock: fix use of 0 as a null pointer constant

 .../eclair_analysis/ECLAIR/deviations.ecl     | 23 +++++++------------
 docs/misra/rules.rst                          |  3 ++-
 xen/include/xen/compiler.h                    |  5 +++-
 xen/include/xen/kernel.h                      |  2 +-
 xen/include/xen/spinlock.h                    |  2 +-
 5 files changed, 16 insertions(+), 19 deletions(-)

--
2.34.1


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

end of thread, other threads:[~2023-10-10  9:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-05  8:45 [XEN PATCH][for-4.19 0/2] address violations of MISRA C:2012 Rule 11.9 Nicola Vetrini
2023-10-05  8:45 ` [XEN PATCH][for-4.19 1/2] xen: introduce a deviation for " Nicola Vetrini
2023-10-06  1:06   ` Stefano Stabellini
2023-10-06  9:27   ` Julien Grall
2023-10-06  9:58     ` Nicola Vetrini
2023-10-06 12:33       ` Julien Grall
2023-10-07  0:33         ` Stefano Stabellini
2023-10-10  9:54           ` Nicola Vetrini
2023-10-05  8:45 ` [XEN PATCH][for-4.19 2/2] xen/spinlock: fix use of 0 as a null pointer constant Nicola Vetrini
2023-10-06  1:07   ` Stefano Stabellini
2023-10-06 19:16     ` andrew.cooper3

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.