forked from Minki/linux
3a66a08759
When CONFIG_KEXEC_FILE=y but CONFIG_KEXEC is not set:
kernel/kexec_core.o: In function `kimage_free':
kexec_core.c:(.text+0xa0c): undefined reference to `machine_kexec_cleanup'
kernel/kexec_core.o: In function `.L0 ':
kexec_core.c:(.text+0xde8): undefined reference to `machine_crash_shutdown'
kexec_core.c:(.text+0xdf4): undefined reference to `machine_kexec'
kernel/kexec_core.o: In function `.L231':
kexec_core.c:(.text+0xe1c): undefined reference to `riscv_crash_save_regs'
kernel/kexec_core.o: In function `.L0 ':
kexec_core.c:(.text+0x119e): undefined reference to `machine_shutdown'
kernel/kexec_core.o: In function `.L312':
kexec_core.c:(.text+0x11b2): undefined reference to `machine_kexec'
kernel/kexec_file.o: In function `.L0 ':
kexec_file.c:(.text+0xb84): undefined reference to `machine_kexec_prepare'
kernel/kexec_file.o: In function `.L177':
kexec_file.c:(.text+0xc5a): undefined reference to `machine_kexec_prepare'
Makefile:1160: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1
These symbols should depend on CONFIG_KEXEC_CORE rather than CONFIG_KEXEC
when kexec_file has been implemented on RISC-V, like the other archs have
done.
Signed-off-by: Li Zhengyu <lizhengyu3@huawei.com>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20220601070204.26882-1-lizhengyu3@huawei.com
Fixes:
|
||
---|---|---|
.. | ||
compat_vdso | ||
probes | ||
vdso | ||
.gitignore | ||
alternative.c | ||
asm-offsets.c | ||
cacheinfo.c | ||
compat_signal.c | ||
compat_syscall_table.c | ||
cpu_ops_sbi.c | ||
cpu_ops_spinwait.c | ||
cpu_ops.c | ||
cpu-hotplug.c | ||
cpu.c | ||
cpufeature.c | ||
crash_dump.c | ||
crash_save_regs.S | ||
efi-header.S | ||
efi.c | ||
elf_kexec.c | ||
entry.S | ||
fpu.S | ||
ftrace.c | ||
head.h | ||
head.S | ||
image-vars.h | ||
irq.c | ||
jump_label.c | ||
kexec_relocate.S | ||
kgdb.c | ||
machine_kexec_file.c | ||
machine_kexec.c | ||
Makefile | ||
mcount-dyn.S | ||
mcount.S | ||
module-sections.c | ||
module.c | ||
patch.c | ||
perf_callchain.c | ||
perf_regs.c | ||
process.c | ||
ptrace.c | ||
reset.c | ||
riscv_ksyms.c | ||
sbi.c | ||
setup.c | ||
signal.c | ||
smp.c | ||
smpboot.c | ||
soc.c | ||
stacktrace.c | ||
suspend_entry.S | ||
suspend.c | ||
sys_riscv.c | ||
syscall_table.c | ||
time.c | ||
trace_irq.c | ||
trace_irq.h | ||
traps_misaligned.c | ||
traps.c | ||
vdso.c | ||
vmlinux-xip.lds.S | ||
vmlinux.lds.S |