automation/eclair_analysis/ECLAIR/deviations.ecl | 5 ++++- docs/misra/deviations.rst | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-)
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@amd.com>
---
CC: Nicola Vetrini <nicola.vetrini@bugseng.com>,
CC: Andrew Cooper <andrew.cooper3@citrix.com>,
CC: Anthony PERARD <anthony.perard@vates.tech>,
CC: Michal Orzel <michal.orzel@amd.com>,
CC: Jan Beulich <jbeulich@suse.com>,
CC: Julien Grall <julien@xen.org>,
CC: Roger Pau Monné <roger@xenproject.org>
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
On 17.11.2026 23:50, Stefano Stabellini wrote: > 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@amd.com> Acked-by: Jan Beulich <jbeulich@suse.com> (or maybe rather/also Requested-by:) perhaps with s/improved/introduced/ throughout. Jan
© 2016 - 2026 Red Hat, Inc.