diff options
| author | Jisheng Zhang <[email protected]> | 2021-05-08 15:43:47 +0000 |
|---|---|---|
| committer | Palmer Dabbelt <[email protected]> | 2021-05-23 05:04:58 +0000 |
| commit | 02ccdeed1817a587161ad091887e11ac8a2586b2 (patch) | |
| tree | 62a0b77b5f258e20d605a8c3d0e79d08a9175bb0 /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | riscv: Select ARCH_USE_MEMTEST (diff) | |
| download | kernel-02ccdeed1817a587161ad091887e11ac8a2586b2.tar.gz kernel-02ccdeed1817a587161ad091887e11ac8a2586b2.zip | |
riscv: kprobes: Fix build error when MMU=n
lkp reported a randconfig failure:
arch/riscv/kernel/probes/kprobes.c:90:22: error: use of undeclared identifier 'PAGE_KERNEL_READ_EXEC'
We implemented the alloc_insn_page() to allocate PAGE_KERNEL_READ_EXEC
page for kprobes insn page for STRICT_MODULE_RWX. But if MMU=n, we
should fall back to the generic weak alloc_insn_page() by generic
kprobe subsystem.
Fixes: cdd1b2bd358f ("riscv: kprobes: Implement alloc_insn_page()")
Signed-off-by: Jisheng Zhang <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
