diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2023-01-11 14:35:38 -0800 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2023-06-12 19:48:57 -0700 |
commit | 959b76a909bf520b3b2ead067db487a80d19663d (patch) | |
tree | 0450e29383ed44091cee40b5cb53c518a54004bb /arch/xtensa/include/asm/ftrace.h | |
parent | e6807b44e49aa737b4ee9fb614da3152e2ce49c0 (diff) | |
download | lwn-959b76a909bf520b3b2ead067db487a80d19663d.tar.gz lwn-959b76a909bf520b3b2ead067db487a80d19663d.zip |
xtensa: drop ARCH_WANT_FRAME_POINTERS
ARCH_WANT_FRAME_POINTERS was enabled in the xtensa Kconfig in the commit
8f371c752154 ("xtensa: enable lockdep support"), but neither windowed
nor call0 xtensa ABI need frame pointers for stack tracing.
Drop ARCH_WANT_FRAME_POINTERS from the xtensa Kconfig.
Drop ftrace_return_address0 definition as the generic implementation is
correct.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include/asm/ftrace.h')
-rw-r--r-- | arch/xtensa/include/asm/ftrace.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/xtensa/include/asm/ftrace.h b/arch/xtensa/include/asm/ftrace.h index 6c6d9a9f185f..0ea4f84cd558 100644 --- a/arch/xtensa/include/asm/ftrace.h +++ b/arch/xtensa/include/asm/ftrace.h @@ -13,17 +13,8 @@ #include <asm/processor.h> #ifndef __ASSEMBLY__ -#define ftrace_return_address0 ({ unsigned long a0, a1; \ - __asm__ __volatile__ ( \ - "mov %0, a0\n" \ - "mov %1, a1\n" \ - : "=r"(a0), "=r"(a1)); \ - MAKE_PC_FROM_RA(a0, a1); }) - -#ifdef CONFIG_FRAME_POINTER extern unsigned long return_address(unsigned level); #define ftrace_return_address(n) return_address(n) -#endif #endif /* __ASSEMBLY__ */ #ifdef CONFIG_FUNCTION_TRACER |