xen/arm: shutdown: Fix MISRA C 2012 Rule 8.4 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Wed, 22 Jun 2022 15:15:12 +0000 (18:15 +0300)
committerJulien Grall <jgrall@amazon.com>
Thu, 23 Jun 2022 18:46:26 +0000 (19:46 +0100)
Include header <xen/shutdown.h> so that the declarations of the functions
machine_halt() and machine_restart(), which have external linkage, are visible
before the function definitions.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/shutdown.c

index 3dc6819d56deb76b8498dcf244bb3edc0b012ab5..5550f50f61b2976c0152a049ea71f9a7559cc73a 100644 (file)
@@ -2,6 +2,7 @@
 #include <xen/cpu.h>
 #include <xen/delay.h>
 #include <xen/lib.h>
+#include <xen/shutdown.h>
 #include <xen/smp.h>
 #include <asm/platform.h>
 #include <asm/psci.h>