]> xenbits.xensource.com Git - xen.git/commitdiff
xen/bootinfo: Include declaration for fw_unreserved_regions()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 18 Nov 2024 10:51:18 +0000 (10:51 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 19 Nov 2024 19:53:51 +0000 (19:53 +0000)
Eclair complains that fw_unreserved_regions() can't see it's declaration.
Include <asm/setup.h> to address this.

This makes Misra Rule 8.4 clean on ARM, so tag it as such.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
automation/eclair_analysis/ECLAIR/tagging.ecl
xen/common/device-tree/bootinfo.c

index 9318e5b10ca8444ef77211dedc0b74e58eda9d71..7944ce2ee3b2e6f7e4fc6a3760c860e696db7978 100644 (file)
@@ -115,7 +115,7 @@ if(string_equal(target,"x86_64"),
 )
 
 if(string_equal(target,"arm64"),
-    service_selector({"additional_clean_guidelines","MC3R1.R2.1||MC3R1.R5.3||MC3.R11.2||MC3R1.R16.6||MC3R1.R20.7"})
+    service_selector({"additional_clean_guidelines","MC3R1.R2.1||MC3R1.R5.3||MC3R1.R8.4||MC3.R11.2||MC3R1.R16.6||MC3R1.R20.7"})
 )
 
 -reports+={clean:added,"service(clean_guidelines_common||additional_clean_guidelines)"}
index f2e6a1145b7c99bc5046628666d33b0601894918..3738eb57ff52d434f59e0e27a0445ebf284fd189 100644 (file)
@@ -17,6 +17,8 @@
 #include <xen/libfdt/libfdt-xen.h>
 #include <xen/mm.h>
 
+#include <asm/setup.h>
+
 struct bootinfo __initdata bootinfo = BOOTINFO_INIT;
 
 const char * __init boot_module_kind_as_string(bootmodule_kind kind)