powerpc/kdump: Split KEXEC_CORE and CRASH_DUMP dependency
authorHari Bathini <hbathini@linux.ibm.com>
Mon, 26 Feb 2024 10:30:10 +0000 (16:00 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 17 Mar 2024 02:34:00 +0000 (13:34 +1100)
commit5c4233cc0920cc90787aafe950b90f6c57a35b88
tree9343132c6e333773c0f60f12e578474180ca2755
parent33f2cc0a2e90f7177c49559b434191b02efd0cd5
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
arch/powerpc/Kconfig
arch/powerpc/include/asm/kexec.h
arch/powerpc/kernel/prom.c
arch/powerpc/kernel/setup-common.c
arch/powerpc/kernel/smp.c
arch/powerpc/kexec/Makefile
arch/powerpc/kexec/core.c
arch/powerpc/platforms/powernv/smp.c