blob: 9bce7b63518de3c52356d1cf8f0c28eaca2d98a5 [file] [log] [blame]
From: Arnd Bergmann <arnd@arndb.de>
Subject: mips: kexec: include linux/reboot.h
Date: Mon, 4 Dec 2023 12:57:10 +0100
Two functions are provided for kexec, but the mips implementation is
missing the corresponding #include statment:
arch/mips/kernel/machine_kexec.c:136:1: error: no previous prototype for 'machine_shutdown' [-Werror=missing-prototypes]
arch/mips/kernel/machine_kexec.c:152:1: error: no previous prototype for 'machine_crash_shutdown' [-Werror=missing-prototypes]
Link: https://lkml.kernel.org/r/20231204115710.2247097-21-arnd@kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Stephen Rothwell <sfr@rothwell.id.au>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
arch/mips/kernel/machine_kexec.c | 1 +
1 file changed, 1 insertion(+)
--- a/arch/mips/kernel/machine_kexec.c~mips-kexec-include-linux-rebooth
+++ a/arch/mips/kernel/machine_kexec.c
@@ -8,6 +8,7 @@
#include <linux/mm.h>
#include <linux/delay.h>
#include <linux/libfdt.h>
+#include <linux/reboot.h>
#include <asm/cacheflush.h>
#include <asm/page.h>
_