MISRA: Rephrase the deviation for Directive 4.10

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>
This commit is contained in:
Andrew Cooper committed 2025-03-11 22:30:10 +00:00
1 parent be59cceb2d
commit 87f8874fef
5 files changed
+5 -5

No files matched your search

@@ -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
+1 -1
View 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__*/
+1 -1
View 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__*/
+1 -1
View 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 */
+1 -1
View 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__*/
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.