Skip to content

Commit

Permalink
sh: Provide CALLER_ADDRx definitions even when ftrace is disabled.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Oct 14, 2009
1 parent e4b053d commit 36c8719
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/sh/include/asm/ftrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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 */

0 comments on commit 36c8719

Please sign in to comment.