]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
MISRA: Rephrase the deviation for Directive 4.10
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 4 Mar 2025 23:48:54 +0000 (23:48 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 11 Mar 2025 22:30:10 +0000 (22:30 +0000)
The use of "legitimately" mixes the concepts of "it was designed to do this"
and "it was correct to do this".

The latter in particular can go stale.  "intended" is a better way of phrasing
this.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
automation/eclair_analysis/ECLAIR/deviations.ecl
xen/arch/arm/include/asm/perfc_defn.h
xen/arch/x86/include/asm/perfc_defn.h
xen/include/asm-generic/perfc_defn.h
xen/include/xen/perfc_defn.h

index dfa5f34b39521734209bf1573df849123c13b0e2..2c8fb9271391723514f763bed3684e4ddfa5d468 100644 (file)
@@ -74,7 +74,7 @@ they are not instances of commented-out code."
 
 -doc_begin="Files that are intended to be included more than once do not need to
 conform to the directive."
--config=MC3A2.D4.10,reports+={safe, "first_area(text(^/\\* This file is legitimately included multiple times\\. \\*/$, begin-4))"}
+-config=MC3A2.D4.10,reports+={safe, "first_area(text(^/\\* This file is intended to be included multiple times\\. \\*/$, begin-4))"}
 -config=MC3A2.D4.10,reports+={safe, "first_area(text(^/\\* Generated file, do not edit! \\*/$, begin-3))"}
 -config=MC3A2.D4.10,reports+={safe, "all_area(all_loc(file(^xen/include/generated/autoconf.h$)))"}
 -doc_end
index 3ab0391175d7fe70f7fa1d8415dc649d412a52f5..effd25b69ecc38f7a40ac686468317f03dd03b7f 100644 (file)
@@ -1,4 +1,4 @@
-/* This file is legitimately included multiple times. */
+/* This file is intended to be included multiple times. */
 /*#ifndef __XEN_PERFC_DEFN_H__*/
 /*#define __XEN_PERFC_DEFN_H__*/
 
index 487e20dc97344b58a0d43e34ca6b08e44ee7c40a..d6127cb91ea5c35165d49137c9e4cdfdef8f2055 100644 (file)
@@ -1,4 +1,4 @@
-/* This file is legitimately included multiple times. */
+/* This file is intended to be included multiple times. */
 /*#ifndef __XEN_PERFC_DEFN_H__*/
 /*#define __XEN_PERFC_DEFN_H__*/
 
index 8237636d83fbd4852970b3b34585ad92b2492e25..726cddc1b3e862dc234b02a7968b6b1b8382f3d8 100644 (file)
@@ -1,4 +1,4 @@
-/* This file is legitimately included multiple times. */
+/* This file is intended to be included multiple times. */
 /* #ifndef ASM_GENERIC_PERFC_DEFN_H */
 /* #define ASM_GENERIC_PERFC_DEFN_H */
 
index a987d80dd6f1793aca19c58f1030edcb64729cf8..afbabad0b3bea498d6253064d90fc25fe1079569 100644 (file)
@@ -1,4 +1,4 @@
-/* This file is legitimately included multiple times. */
+/* This file is intended to be included multiple times. */
 /*#ifndef __XEN_PERFC_DEFN_H__*/
 /*#define __XEN_PERFC_DEFN_H__*/