[XEN PATCH 0/4][for-4.19] xen: address violations of Rule 13.1

Simone Ballarin posted 4 patches 6 months, 2 weeks ago
Failed in applying to current master (apply log)
.../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(-)
[XEN PATCH 0/4][for-4.19] xen: address violations of Rule 13.1
Posted by Simone Ballarin 6 months, 2 weeks ago
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