Skip to content

xen: address violations of Rule 13.1

Simone Ballarin xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 42 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4xen/arm: address violations of MISRA C:2012 Rule 13.1xen/arch/arm/device.c xen/arch/arm/guestcopy.c xen/arch/arm/include/asm/current.h+12 -812 replies
2/4automation/eclair: add deviations and call properties.automation/eclair_analysis/ECLAIR/call_properties.ecl automation/eclair_analysis/ECLAIR/deviations.ecl docs/misra/deviations.rst+34 -04 replies
3/4xen/include: add pure and const attributesxen/include/xen/pdx.h xen/include/xen/typesafe.h+3 -317 replies
4/4xen: address violations of MISRA C:2012 Rule 13.1xen/common/sched/core.c xen/drivers/char/ns16550.c+15 -59 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchStefano Stabellini
1/4
2/4A-b
3/4R-b
4/4

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 0/4][for-4.19] xen: address violations of Rule 13.1

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(-)
Signature · 1 line
2.34.1