aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/riscv/include/asm/ptdump.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/include/asm/ptdump.h')
-rw-r--r--arch/riscv/include/asm/ptdump.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/ptdump.h b/arch/riscv/include/asm/ptdump.h
index e29af7191909..3c9ea6dd5af7 100644
--- a/arch/riscv/include/asm/ptdump.h
+++ b/arch/riscv/include/asm/ptdump.h
@@ -8,4 +8,15 @@
void ptdump_check_wx(void);
+#ifdef CONFIG_DEBUG_WX
+static inline void debug_checkwx(void)
+{
+ ptdump_check_wx();
+}
+#else
+static inline void debug_checkwx(void)
+{
+}
+#endif
+
#endif /* _ASM_RISCV_PTDUMP_H */