Skip to content

Commit c528ef0

Browse files
guoren83palmer-dabbelt
authored andcommitted
riscv: Fixup compile error with !MMU
Current nommu_virt_defconfig can't compile: In file included from arch/riscv/kernel/crash_core.c:3: arch/riscv/kernel/crash_core.c: In function 'arch_crash_save_vmcoreinfo': arch/riscv/kernel/crash_core.c:8:27: error: 'VA_BITS' undeclared (first use in this function) 8 | VMCOREINFO_NUMBER(VA_BITS); | ^~~~~~~ Add MMU dependency for KEXEC_FILE. Fixes: 6261586 ("RISC-V: Add kexec_file support") Reported-by: Conor Dooley <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: Guo Ren <[email protected]> Signed-off-by: Guo Ren <[email protected]> Tested-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 71fc362 commit c528ef0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/riscv/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ config KEXEC_FILE
498498
select KEXEC_CORE
499499
select KEXEC_ELF
500500
select HAVE_IMA_KEXEC if IMA
501-
depends on 64BIT
501+
depends on 64BIT && MMU
502502
help
503503
This is new version of kexec system call. This system call is
504504
file based and takes file descriptors as system call argument

0 commit comments

Comments
 (0)