[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [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(-) -- 2.34.1
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |