From: Steven Rostedt Date: Mon, 12 May 2008 19:20:50 +0000 (+0200) Subject: ftrace: remove address of function names X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=caf8cdebfb6c1cff50ea8077f1a07c2333d6d1fd;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ftrace: remove address of function names PowerPC is very fragile when it comes to use of function names and function addresses. ftrace needs to either use all function addresses or function names (i.e. my_func as suppose to &my_func). This patch chooses to use the names and not the addresses, and makes ftrace consistent. Signed-off-by: Steven Rostedt Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 425b1fec3d83..57350cbd1f61 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -326,8 +326,8 @@ ftrace_record_ip(unsigned long ip) preempt_enable_notrace(); } -#define FTRACE_ADDR ((long)(&ftrace_caller)) -#define MCOUNT_ADDR ((long)(&mcount)) +#define FTRACE_ADDR ((long)(ftrace_caller)) +#define MCOUNT_ADDR ((long)(mcount)) static void notrace __ftrace_replace_code(struct dyn_ftrace *rec,