]> xenbits.xensource.com Git - xen.git/commitdiff
automation/eclair_analysis: add Rule 18.6 to the clean guidelines
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Wed, 31 Jul 2024 12:41:52 +0000 (14:41 +0200)
committerStefano Stabellini <stefano.stabellini@amd.com>
Fri, 2 Aug 2024 21:24:30 +0000 (14:24 -0700)
MISRA C Rule 18.6 states: "The address of an object with automatic
storage shall not be copied to another object that persists after
the first object has ceased to exist."

The rule is set as monitored and tagged clean, in order to block
the CI on any violations that may arise, allowing the presence
of cautions (currently there are no violations).

No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
automation/eclair_analysis/ECLAIR/monitored.ecl
automation/eclair_analysis/ECLAIR/tagging.ecl

index 9ffaebbdc378bcff8e00128e9de56c5729ef2e89..8a7e3f3ceaa98063dd79676d146db92a1fab518b 100644 (file)
@@ -32,6 +32,7 @@
 -enable=MC3R1.R17.4
 -enable=MC3R1.R17.5
 -enable=MC3R1.R17.6
+-enable=MC3R1.R18.6
 -enable=MC3R1.R19.1
 -enable=MC3R1.R20.12
 -enable=MC3R1.R20.13
index b829655ca0bc6867d059541ab16b4158517c3620..e7b32773e60e5a9e1be92a2f82c89b56c296c8fe 100644 (file)
@@ -67,6 +67,7 @@ MC3R1.R17.3||
 MC3R1.R17.4||
 MC3R1.R17.5||
 MC3R1.R17.6||
+MC3R1.R18.6||
 MC3R1.R18.8||
 MC3R1.R20.2||
 MC3R1.R20.3||