diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-10-14 04:49:49 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-10-14 04:49:49 +0200 |
commit | 36c871992697eaaf88a3682c2c3003a41c54b8c0 (patch) | |
tree | ff0206598be247ad883b411819db8c6decc5c5dc /arch/sh | |
parent | sh: ftrace: Make code modification NMI safe. (diff) | |
download | linux-36c871992697eaaf88a3682c2c3003a41c54b8c0.tar.xz linux-36c871992697eaaf88a3682c2c3003a41c54b8c0.zip |
sh: Provide CALLER_ADDRx definitions even when ftrace is disabled.
Despite being located in the ftrace header, the CALLER_ADDRx definitions
are used by generic code. As such, we have to provide it generically, and
given that there is no real dependence on ftrace in the first place, the
definitions can just be moved out.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/include/asm/ftrace.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sh/include/asm/ftrace.h b/arch/sh/include/asm/ftrace.h index 28875a3e4116..13e9966464c2 100644 --- a/arch/sh/include/asm/ftrace.h +++ b/arch/sh/include/asm/ftrace.h @@ -32,6 +32,11 @@ static inline unsigned long ftrace_call_adjust(unsigned long addr) return addr; } +#endif /* __ASSEMBLY__ */ +#endif /* CONFIG_FUNCTION_TRACER */ + +#ifndef __ASSEMBLY__ + /* arch/sh/kernel/return_address.c */ extern void *return_address(unsigned int); @@ -46,6 +51,5 @@ extern void *return_address(unsigned int); #define CALLER_ADDR6 ((unsigned long)return_address(6)) #endif /* __ASSEMBLY__ */ -#endif /* CONFIG_FUNCTION_TRACER */ #endif /* __ASM_SH_FTRACE_H */ |