diff options
author | Simon Horman <horms@kernel.org> | 2023-04-18 13:54:00 +0200 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2023-04-20 10:45:23 +0100 |
commit | b7b4ce84c830ae3ce6429fbbd70a62a4ae1ac78d (patch) | |
tree | 22f231d4306b3894d66679ee41b291adb6c18793 /arch/arm64/kernel/machine_kexec.c | |
parent | 460e70e2dc9af3128f69e533daf349635c421b0a (diff) | |
download | linux-stable-b7b4ce84c830ae3ce6429fbbd70a62a4ae1ac78d.tar.gz linux-stable-b7b4ce84c830ae3ce6429fbbd70a62a4ae1ac78d.tar.bz2 linux-stable-b7b4ce84c830ae3ce6429fbbd70a62a4ae1ac78d.zip |
arm64: kexec: include reboot.h
Include reboot.h in machine_kexec.c for declaration of
machine_crash_shutdown.
gcc-12 with W=1 reports:
arch/arm64/kernel/machine_kexec.c:257:6: warning: no previous prototype for 'machine_crash_shutdown' [-Wmissing-prototypes]
257 | void machine_crash_shutdown(struct pt_regs *regs)
No functional changes intended.
Compile tested only.
Signed-off-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230418-arm64-kexec-include-reboot-v1-1-8453fd4fb3fb@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/kernel/machine_kexec.c')
-rw-r--r-- | arch/arm64/kernel/machine_kexec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kernel/machine_kexec.c b/arch/arm64/kernel/machine_kexec.c index d35cb0568f84..3604322b2b3b 100644 --- a/arch/arm64/kernel/machine_kexec.c +++ b/arch/arm64/kernel/machine_kexec.c @@ -11,6 +11,7 @@ #include <linux/kernel.h> #include <linux/kexec.h> #include <linux/page-flags.h> +#include <linux/reboot.h> #include <linux/set_memory.h> #include <linux/smp.h> |