linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] powerpc/ftrace: Fix #if that should be #ifdef
@ 2009-04-06 14:40 Michael Ellerman
  2009-04-06 14:40 ` [PATCH 2/2] powerpc/ftrace: Fix printf format warning Michael Ellerman
  2009-04-06 14:45 ` [PATCH 1/2] powerpc/ftrace: Fix #if that should be #ifdef Steven Rostedt
  0 siblings, 2 replies; 5+ messages in thread
From: Michael Ellerman @ 2009-04-06 14:40 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: srostedt

Commit bb7253403f7a4670a128e4c080fd8ea1bd4d5029 (powerpc64,
ftrace: save toc only on modules for function graph), added a

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>
---
 arch/powerpc/kernel/ftrace.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/ftrace.c b/arch/powerpc/kernel/ftrace.c
index e74f2dd..e9d9d38 100644
--- a/arch/powerpc/kernel/ftrace.c
+++ b/arch/powerpc/kernel/ftrace.c
@@ -559,7 +559,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;
-- 
1.6.2.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-04-06 14:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-06 14:40 [PATCH 1/2] powerpc/ftrace: Fix #if that should be #ifdef Michael Ellerman
2009-04-06 14:40 ` [PATCH 2/2] powerpc/ftrace: Fix printf format warning Michael Ellerman
2009-04-06 14:46   ` Steven Rostedt
2009-04-06 14:45 ` [PATCH 1/2] powerpc/ftrace: Fix #if that should be #ifdef Steven Rostedt
2009-04-06 14:59   ` Michael Ellerman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).