Skip to content

address violations of MISRA C:2012 Rule 11.9

Nicola Vetrini xen-devel 1 version Applied

Status from this message: I've picked this up for 4.19.  It's trivial and not liable to conflict

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2xen: introduce a deviation for Rule 11.9automation/eclair_analysis/ECLAIR/deviations.ecl docs/misra/rules.rst xen/include/xen/compiler.h +1 more+15 -186 replies
2/2xen/spinlock: fix use of 0 as a null pointer constantxen/include/xen/spinlock.h+1 -12 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchStefano Stabellini
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [XEN PATCH][for-4.19 0/2] address violations of MISRA C:2012 Rule 11.9

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