]> Pileus Git - ~andy/linux/commitdiff
sh: Provide CALLER_ADDRx definitions even when ftrace is disabled.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 14 Oct 2009 02:49:49 +0000 (11:49 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 14 Oct 2009 02:49:49 +0000 (11:49 +0900)
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>
arch/sh/include/asm/ftrace.h

index 28875a3e41164d73e5b042824d04ff3231a2539d..13e9966464c2b35e178325131a3377968056fbea 100644 (file)
@@ -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 */