Commit c528ef08 authored by Guo Ren's avatar Guo Ren Committed by Palmer Dabbelt

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: 6261586e ("RISC-V: Add kexec_file support")
Reported-by: default avatarConor Dooley <conor.dooley@microchip.com>
Reported-by: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarGuo Ren <guoren@kernel.org>
Signed-off-by: default avatarGuo Ren <guoren@linux.alibaba.com>
Tested-by: default avatarConor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20221207091112.2258674-1-guoren@kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 71fc3621
...@@ -498,7 +498,7 @@ config KEXEC_FILE ...@@ -498,7 +498,7 @@ config KEXEC_FILE
select KEXEC_CORE select KEXEC_CORE
select KEXEC_ELF select KEXEC_ELF
select HAVE_IMA_KEXEC if IMA select HAVE_IMA_KEXEC if IMA
depends on 64BIT depends on 64BIT && MMU
help help
This is new version of kexec system call. This system call is This is new version of kexec system call. This system call is
file based and takes file descriptors as system call argument file based and takes file descriptors as system call argument
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment