tracing: fix build failure on s390
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 29 Apr 2009 11:51:39 +0000 (13:51 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Apr 2009 12:06:21 +0000 (14:06 +0200)
"tracing: create automated trace defines" causes this compile error on s390,
as reported by Sachin Sant against linux-next:

 kernel/built-in.o: In function `__do_softirq':
 (.text+0x1c680): undefined reference to `__tracepoint_softirq_entry'

This happens because the definitions of the softirq tracepoints were moved
from kernel/softirq.c to kernel/irq/handle.c. Since s390 doesn't support
generic hardirqs handle.c doesn't get compiled and the definitions are
missing.

So move the tracepoints to softirq.c again.

[ Impact: fix build failure on s390 ]

Reported-by: Sachin Sant <sachinp@in.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: fweisbec@gmail.com
LKML-Reference: <20090429135139.5fac79b8@osiris.boeblingen.de.ibm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/irq/handle.c
kernel/softirq.c

index 37c63633e78b48ea71073d12af325ba79f0ec97d..e68bb5aebe02e15c4d566519196b484b07597551 100644 (file)
@@ -18,8 +18,6 @@
 #include <linux/rculist.h>
 #include <linux/hash.h>
 #include <linux/bootmem.h>
-
-#define CREATE_TRACE_POINTS
 #include <trace/events/irq.h>
 
 #include "internals.h"
index 7ab9dfd8d0820c4dc2bbbcec9522e61a8be71b6e..d4ba347a872d99a81c4156ac96e7823353add867 100644 (file)
@@ -24,6 +24,8 @@
 #include <linux/ftrace.h>
 #include <linux/smp.h>
 #include <linux/tick.h>
+
+#define CREATE_TRACE_POINTS
 #include <trace/events/irq.h>
 
 #include <asm/irq.h>