]> git.baikalelectronics.ru Git - kernel.git/commit
arm/ftrace: fix ftrace_return_addr() to ftrace_return_address()
authorSteven Rostedt <rostedt@goodmis.org>
Mon, 16 Jun 2014 14:25:29 +0000 (15:25 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 18 Jun 2014 11:40:55 +0000 (12:40 +0100)
commit5a05fadc3be5fe135ade9fd235bf3271d04700b0
treed9f9f55680f42e13fa5cd8db434ef48a15e1b07f
parent298471cda7030a67e85c341299356c588663012f
arm/ftrace: fix ftrace_return_addr() to ftrace_return_address()

The clean up of CALLER_ADDR*() functions required the archs to either
use the default __builtin_return_address(X) (where X > 0) or override
it with something the arch can use. To override it, the arch would
define ftrace_return_address(x).

The arm architecture requires this to be redefined but instead of
defining ftrace_return_address(x) it defined ftrace_return_addr(x).

Fixes: 6367aa43e799 (ftrace: Make CALLER_ADDRx macros more generic)
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/include/asm/ftrace.h