summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kexec/core.c
diff options
context:
space:
mode:
authorHari Bathini <hbathini@linux.ibm.com>2024-02-26 16:00:10 +0530
committerMichael Ellerman <mpe@ellerman.id.au>2024-03-17 13:34:00 +1100
commit5c4233cc0920cc90787aafe950b90f6c57a35b88 (patch)
tree9343132c6e333773c0f60f12e578474180ca2755 /arch/powerpc/kexec/core.c
parent33f2cc0a2e90f7177c49559b434191b02efd0cd5 (diff)
downloadlinux-5c4233cc0920cc90787aafe950b90f6c57a35b88.tar.gz
linux-5c4233cc0920cc90787aafe950b90f6c57a35b88.tar.bz2
linux-5c4233cc0920cc90787aafe950b90f6c57a35b88.zip
powerpc/kdump: Split KEXEC_CORE and CRASH_DUMP dependency
Remove CONFIG_CRASH_DUMP dependency on CONFIG_KEXEC. CONFIG_KEXEC_CORE was used at places where CONFIG_CRASH_DUMP or CONFIG_CRASH_RESERVE was appropriate. Replace with appropriate #ifdefs to support CONFIG_KEXEC and !CONFIG_CRASH_DUMP configuration option. Also, make CONFIG_FA_DUMP dependent on CONFIG_CRASH_DUMP to avoid unmet dependencies for FA_DUMP with !CONFIG_KEXEC_CORE configuration option. Signed-off-by: Hari Bathini <hbathini@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240226103010.589537-4-hbathini@linux.ibm.com
Diffstat (limited to 'arch/powerpc/kexec/core.c')
-rw-r--r--arch/powerpc/kexec/core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/kexec/core.c b/arch/powerpc/kexec/core.c
index 3ff4411ed496..b8333a49ea5d 100644
--- a/arch/powerpc/kexec/core.c
+++ b/arch/powerpc/kexec/core.c
@@ -44,10 +44,12 @@ void machine_kexec_mask_interrupts(void) {
}
}
+#ifdef CONFIG_CRASH_DUMP
void machine_crash_shutdown(struct pt_regs *regs)
{
default_machine_crash_shutdown(regs);
}
+#endif
void machine_kexec_cleanup(struct kimage *image)
{
@@ -77,6 +79,7 @@ void machine_kexec(struct kimage *image)
for(;;);
}
+#ifdef CONFIG_CRASH_RESERVE
void __init reserve_crashkernel(void)
{
unsigned long long crash_size, crash_base, total_mem_sz;
@@ -251,3 +254,4 @@ static int __init kexec_setup(void)
return 0;
}
late_initcall(kexec_setup);
+#endif /* CONFIG_CRASH_RESERVE */