ARM: 9219/1: fix undeclared soft_restart
authorBen Dooks <ben-linux@fluff.org>
Sun, 24 Jul 2022 22:39:22 +0000 (23:39 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Thu, 28 Jul 2022 14:09:17 +0000 (15:09 +0100)
The soft_restart() is declared in <asm/system_misc.h> so
include that to fix the following sparse warning:

arch/arm/kernel/reboot.c:78:6: warning: symbol 'soft_restart' was not declared. Should it be static?

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/reboot.c

index 2cb943422554eddbbf65a260dfdc8c37cbf55034..3f0d5c3dae11b5a6649aa5faf22cd9e20c3466ec 100644 (file)
@@ -10,6 +10,7 @@
 #include <asm/cacheflush.h>
 #include <asm/idmap.h>
 #include <asm/virt.h>
+#include <asm/system_misc.h>
 
 #include "reboot.h"