]> xenbits.xensource.com Git - people/aperard/xen-unstable.git/commitdiff
automation/eclair: add deviation for MISRA C 2012 Dir 4.10
authorAlessandro Zucchelli <alessandro.zucchelli@bugseng.com>
Tue, 10 Sep 2024 14:15:36 +0000 (16:15 +0200)
committerStefano Stabellini <stefano.stabellini@amd.com>
Wed, 18 Sep 2024 20:26:46 +0000 (13:26 -0700)
Add deviation to address violations of MISRA C:2012 Directive 4.10
("Precautions shall be taken in order to prevent the contents of a
header file being included more than once").

This deviation suppresses the violation arising from autogenerated file
xen/include/generated/autoconf.h

No functional change.

Signed-off-by: Alessandro Zucchelli <alessandro.zucchelli@bugseng.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
automation/eclair_analysis/ECLAIR/deviations.ecl

index 2bb118248baad8ce8d25ae3c38547db7f7857e0f..2f58f292036e3561118ce9664a92756b1b938739 100644 (file)
@@ -76,6 +76,7 @@ they are not instances of commented-out code."
 conform to the directive."
 -config=MC3R1.D4.10,reports+={safe, "first_area(text(^/\\* This file is legitimately included multiple times\\. \\*/$, begin-4))"}
 -config=MC3R1.D4.10,reports+={safe, "first_area(text(^/\\* Generated file, do not edit! \\*/$, begin-3))"}
+-config=MC3R1.D4.10,reports+={safe, "all_area(all_loc(file(^xen/include/generated/autoconf.h$)))"}
 -doc_end
 
 -doc_begin="Including multiple times a .c file is safe because every function or data item