Skip to content

Commit

Permalink
powerpc/ftrace: Fix #if that should be #ifdef
Browse files Browse the repository at this point in the history
Commit bb72534 ("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 <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>
  • Loading branch information
mpe authored and paulusmack committed Apr 7, 2009
1 parent bc82666 commit f4952f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/kernel/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr)
if (unlikely(atomic_read(&current->tracing_graph_pause)))
return;

#if CONFIG_PPC64
#ifdef CONFIG_PPC64
/* non core kernel code needs to save and restore the TOC */
if (REGION_ID(self_addr) != KERNEL_REGION_ID)
return_hooker = (unsigned long)&mod_return_to_handler;
Expand Down

0 comments on commit f4952f6

Please sign in to comment.