]> git.ipfire.org Git - thirdparty/linux.git/blobdiff - arch/riscv/include/asm/ftrace.h
Merge tag 'mm-nonmm-stable-2024-03-14-09-36' of git://git.kernel.org/pub/scm/linux...
[thirdparty/linux.git] / arch / riscv / include / asm / ftrace.h
index cf5b63e789fa7c7f0b67839fb05cd8cf8aabe32d..1276d7d9ca8b66264d1b13ff2189d9ca2e341c01 100644 (file)
 
 #define ARCH_SUPPORTS_FTRACE_OPS 1
 #ifndef __ASSEMBLY__
+
+extern void *return_address(unsigned int level);
+
+#define ftrace_return_address(n) return_address(n)
+
 void _mcount(void);
 static inline unsigned long ftrace_call_adjust(unsigned long addr)
 {