|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] 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.
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxx>
---
CC: Nicola Vetrini <nicola.vetrini@xxxxxxxxxxx>,
CC: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>,
CC: Anthony PERARD <anthony.perard@xxxxxxxxxx>,
CC: Michal Orzel <michal.orzel@xxxxxxx>,
CC: Jan Beulich <jbeulich@xxxxxxxx>,
CC: Julien Grall <julien@xxxxxxx>,
CC: Roger Pau Monné <roger@xxxxxxxxxxxxxx>
automation/eclair_analysis/ECLAIR/deviations.ecl | 5 ++++-
docs/misra/deviations.rst | 7 +++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/automation/eclair_analysis/ECLAIR/deviations.ecl
b/automation/eclair_analysis/ECLAIR/deviations.ecl
index d49af53055..fbcc1c04cb 100644
--- a/automation/eclair_analysis/ECLAIR/deviations.ecl
+++ b/automation/eclair_analysis/ECLAIR/deviations.ecl
@@ -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
diff --git a/docs/misra/deviations.rst b/docs/misra/deviations.rst
index 7b983db264..3b7ccddfac 100644
--- a/docs/misra/deviations.rst
+++ b/docs/misra/deviations.rst
@@ -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.
--
2.47.3
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |