[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230421-m68k-kexec-include-reboot-v1-1-7552963a0f25@kernel.org>
Date: Fri, 21 Apr 2023 09:11:49 +0200
From: Simon Horman <horms@...nel.org>
To: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Baoquan He <bhe@...hat.com>,
"Leizhen (ThunderTown)" <thunder.leizhen@...wei.com>,
linux-arm-kernel@...ts.infradead.org,
linux-m68k@...ts.linux-m68k.org, kexec@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] m68k: 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/m68k/kernel/machine_kexec.c:26:6: warning: no previous prototype for 'machine_shutdown' [-Wmissing-prototypes]
26 | void machine_shutdown(void)
| ^~~~~~~~~~~~~~~~
arch/m68k/kernel/machine_kexec.c:30:6: warning: no previous prototype for 'machine_crash_shutdown' [-Wmissing-prototypes]
30 | void machine_crash_shutdown(struct pt_regs *regs)
| ^~~~~~~~~~~~~~~~~~~~~~
No functional changes intended.
Compile tested only.
Signed-off-by: Simon Horman <horms@...nel.org>
---
arch/m68k/kernel/machine_kexec.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/m68k/kernel/machine_kexec.c b/arch/m68k/kernel/machine_kexec.c
index 206f84983120..739875540e89 100644
--- a/arch/m68k/kernel/machine_kexec.c
+++ b/arch/m68k/kernel/machine_kexec.c
@@ -6,6 +6,7 @@
#include <linux/kexec.h>
#include <linux/mm.h>
#include <linux/delay.h>
+#include <linux/reboot.h>
#include <asm/cacheflush.h>
#include <asm/page.h>
Powered by blists - more mailing lists