misra: note the plan to remove the R2.1 deviation for unreferenced functions
PATCH 1/1 misra: note the plan to remove the R2.1 deviation for unreferenced functions
The ECLAIR deviation of MC3A2.R2.1 for functions that are never referenced has a one-line justification and no entry in docs/misra/deviations.rst. Note that gc-sections support in the Xen build is to be improved, so that such functions are discarded from the final binary and the deviation can be removed for them, and add the matching deviations.rst entry.
---
CC: Nicola Vetrini <[email protected]>,
CC: Andrew Cooper <[email protected]>,
CC: Anthony PERARD <[email protected]>,
CC: Michal Orzel <[email protected]>,
CC: Jan Beulich <[email protected]>,
CC: Julien Grall <[email protected]>,
CC: Roger Pau Monné <[email protected]>
automation/eclair_analysis/ECLAIR/deviations.ecl | 5 ++++- docs/misra/deviations.rst | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-)
automation/eclair_analysis/ECLAIR/deviations.ecl +4 -1
@@ -8,7 +8,10 @@ Constant expressions and unreachable branches of if and switch statements are ex -config=MC3A2.R2.1,+reports={safe,"first_area(^.*incompatible with labeled statement$)"} -doc_end --doc_begin="Some functions are intended to be not referenced." +-doc_begin="Some functions are intended to be not referenced. +Support for gc-sections in the Xen build is intended to be improved, so that +such functions are discarded from the final binary and this deviation can be +removed for them." -config=MC3A2.R2.1,+reports={deliberate,"first_area(^.*is never referenced$)"} -doc_end
docs/misra/deviations.rst +7 -0
@@ -64,6 +64,13 @@ Deviations related to MISRA C:2012 Rules: statements are expected. - Tagged as `safe` for ECLAIR. + * - R2.1 + - Some functions are intended to be not referenced. + Support for gc-sections in the Xen build is intended to be improved, + so that such functions are discarded from the final binary and this + deviation can be removed for them. + - Tagged as `deliberate` for ECLAIR. + * - R2.1 - Unreachability caused by calls to the following functions or macros is deliberate and there is no risk of code being unexpectedly left out.
Signature · 1 line
2.47.3
Quoted 8 lines · Stefano Stabellini
The ECLAIR deviation of MC3A2.R2.1 for functions that are never referenced has a one-line justification and no entry in
docs/misra/deviations.rst. Note that gc-sections support in the Xen build is to be improved, so that such functions are discarded from the final binary and the deviation can be removed for them, and add the matchingdeviations.rstentry.Signed-off-by Stefano Stabellini <[email protected]>
(or maybe rather/also Requested-by:) perhaps with s/improved/introduced/ throughout.
Jan