[PATCH] riscv: Add HAVE_REGS_AND_STACK_ACCESS_API feature

William Cohen wcohen at redhat.com
Sun Jul 11 08:51:53 PDT 2021


The Linux kernel already has the functions required for
HAVE_REGS_AND_STACK_ACCESS_API feature for RISC-V.
Make the configuration machinery know about the
available functions so CONFIG_KPROBE_EVENTS can be enabled.

Signed-off-by: William Cohen <wcohen at redhat.com>
---
 arch/riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
index bf5e8de0d0d4..8bf83d4e0846 100644
--- a/arch/riscv/Kconfig
+++ b/arch/riscv/Kconfig
@@ -249,6 +249,7 @@ config ARCH_RV64I
 	select HAVE_DYNAMIC_FTRACE_WITH_REGS if HAVE_DYNAMIC_FTRACE
 	select HAVE_FTRACE_MCOUNT_RECORD if !XIP_KERNEL
 	select HAVE_FUNCTION_GRAPH_TRACER
+	select HAVE_REGS_AND_STACK_ACCESS_API
 	select HAVE_FUNCTION_TRACER if !XIP_KERNEL
 	select SWIOTLB if MMU
 
-- 
2.27.0




More information about the linux-riscv mailing list