s390/kexec: make machine_kexec() depend on CONFIG_KEXEC_CORE
authorAlexander Gordeev <agordeev@linux.ibm.com>
Thu, 6 Jul 2023 14:24:11 +0000 (16:24 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 24 Jul 2023 10:12:23 +0000 (12:12 +0200)
commitb9b4568843bb6ceee85bf1280473f510701c82e2
tree175fc75bf65f8f45fe4f9285055d1d0e1b400af4
parent1256e70a082ad855efe351146dfa39207d5e3e70
s390/kexec: make machine_kexec() depend on CONFIG_KEXEC_CORE

Make machine_kexec.o and relocate_kernel.o depend on
CONFIG_KEXEC_CORE option as other architectures do.

Still generate machine_kexec_reloc.o unconditionally,
since arch_kexec_do_relocs() function is neded by the
decompressor.

Suggested-by: Nathan Chancellor <nathan@kernel.org>
Reported-by: Nathan Chancellor <nathan@kernel.org>
Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/Makefile