]> xenbits.xensource.com Git - xen.git/commitdiff
docs/misra: add asm-offset.c to exclude-list
authorNicola Vetrini <nicola.vetrini@bugseng.com>
Thu, 8 Feb 2024 15:50:09 +0000 (16:50 +0100)
committerJulien Grall <jgrall@amazon.com>
Tue, 13 Feb 2024 10:20:38 +0000 (10:20 +0000)
These files contain several deliberate violations of MISRA C rules such
as:
  * R20.12 for macros DEFINE and OFFSET, where the second argument
    of OFFSET is a macro and is used as a normal parameter and a
    stringification operand.
  * R2.1 because the file is not linked. That said it was decided to
    deviate the rule itself to address that aspect).

No functional change.

Signed-off-by: Nicola Vetrini <nicola.vetrini@bugseng.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
docs/misra/exclude-list.json

index 7971d0e70f5b6d17bea556f671b15da31b60be93..bfd967f0e4cf7d492fa9d965ef5110f7399a75e4 100644 (file)
             "rel_path": "arch/x86/efi/check.c",
             "comment": "The resulting code is not included in the final Xen binary, ignore for now"
         },
+        {
+            "rel_path": "arch/*/*/asm-offsets.c",
+            "comment": "The resulting code is not included in the final Xen binary, ignore for now"
+        },
         {
             "rel_path": "common/coverage/*",
             "comment": "Files to support gcov, ignore for now"