aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/ftrace.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-11-26 21:04:43 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-12-22 04:43:50 -0500
commit22f131aa8de7a534339bf7051680234462f2e877 (patch)
tree2839cdda670bd7bd58fb26a1945ad587b24c3ea1 /arch/sh/include/asm/ftrace.h
parent1da1180c6e28cf21be356e2701978727558fa198 (diff)
sh: Provide a dyn_arch_ftrace struct definition.
Needed for dynamic ftrace API changes. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/ftrace.h')
-rw-r--r--arch/sh/include/asm/ftrace.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/arch/sh/include/asm/ftrace.h b/arch/sh/include/asm/ftrace.h
index 4cb5dbfc404..8fea7d8c825 100644
--- a/arch/sh/include/asm/ftrace.h
+++ b/arch/sh/include/asm/ftrace.h
@@ -15,15 +15,20 @@ extern void mcount(void);
15#define STUB_ADDR ((long)(ftrace_stub)) 15#define STUB_ADDR ((long)(ftrace_stub))
16 16
17#define MCOUNT_INSN_OFFSET ((STUB_ADDR - CALLER_ADDR) >> 1) 17#define MCOUNT_INSN_OFFSET ((STUB_ADDR - CALLER_ADDR) >> 1)
18#endif 18
19struct dyn_arch_ftrace {
20 /* No extra data needed on sh */
21};
22
23#endif /* CONFIG_DYNAMIC_FTRACE */
19 24
20static inline unsigned long ftrace_call_adjust(unsigned long addr) 25static inline unsigned long ftrace_call_adjust(unsigned long addr)
21{ 26{
22 /* 'addr' is the memory table address. */ 27 /* 'addr' is the memory table address. */
23 return addr; 28 return addr;
24} 29}
25#endif
26 30
31#endif /* __ASSEMBLY__ */
27#endif /* CONFIG_FUNCTION_TRACER */ 32#endif /* CONFIG_FUNCTION_TRACER */
28 33
29#endif /* __ASM_SH_FTRACE_H */ 34#endif /* __ASM_SH_FTRACE_H */