Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+5 -1
+5 -1
arch/sh/include/asm/ftrace.h
··· 32 32 return addr; 33 33 } 34 34 35 + #endif /* __ASSEMBLY__ */ 36 + #endif /* CONFIG_FUNCTION_TRACER */ 37 + 38 + #ifndef __ASSEMBLY__ 39 + 35 40 /* arch/sh/kernel/return_address.c */ 36 41 extern void *return_address(unsigned int); 37 42 ··· 51 46 #define CALLER_ADDR6 ((unsigned long)return_address(6)) 52 47 53 48 #endif /* __ASSEMBLY__ */ 54 - #endif /* CONFIG_FUNCTION_TRACER */ 55 49 56 50 #endif /* __ASM_SH_FTRACE_H */