Skip to content

Commit cc719a9

Browse files
hormshdeller
authored andcommitted
parisc: kexec: include reboot.h
Include reboot.h in machine_kexec.c for declaration of machine_crash_shutdown and machine_shutdown. gcc-12 with W=1 reports: arch/parisc/kernel/kexec.c:57:6: warning: no previous prototype for 'machine_crash_shutdown' [-Wmissing-prototypes] 57 | void machine_crash_shutdown(struct pt_regs *regs) | ^~~~~~~~~~~~~~~~~~~~~~ arch/parisc/kernel/kexec.c:61:6: warning: no previous prototype for 'machine_shutdown' [-Wmissing-prototypes] 61 | void machine_shutdown(void) | ^~~~~~~~~~~~~~~~ No functional changes intended. Compile tested only. Signed-off-by: Simon Horman <horms@kernel.org> Acked-by: Baoquan He <bhe@redhat.com> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent ac9a786 commit cc719a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/parisc/kernel/kexec.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
#include <linux/console.h>
55
#include <linux/kexec.h>
66
#include <linux/delay.h>
7+
#include <linux/reboot.h>
8+
79
#include <asm/cacheflush.h>
810
#include <asm/sections.h>
911

0 commit comments

Comments
 (0)