powerpc/ftrace: Fix #if that should be #ifdef
Commit bb7253403f
("powerpc64,
ftrace: save toc only on modules for function graph"), added an
#if CONFIG_PPC64. This changes it to #ifdef.
Fixes the following warning on 32-bit builds:
arch/powerpc/kernel/ftrace.c:562:5: error: "CONFIG_PPC64" is not defined
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Родитель
bc826666e4
Коммит
f4952f6cbe
|
@ -564,7 +564,7 @@ void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr)
|
||||||
if (unlikely(atomic_read(¤t->tracing_graph_pause)))
|
if (unlikely(atomic_read(¤t->tracing_graph_pause)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
#if CONFIG_PPC64
|
#ifdef CONFIG_PPC64
|
||||||
/* non core kernel code needs to save and restore the TOC */
|
/* non core kernel code needs to save and restore the TOC */
|
||||||
if (REGION_ID(self_addr) != KERNEL_REGION_ID)
|
if (REGION_ID(self_addr) != KERNEL_REGION_ID)
|
||||||
return_hooker = (unsigned long)&mod_return_to_handler;
|
return_hooker = (unsigned long)&mod_return_to_handler;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче