[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-6c347d43eea29221a8ebab9ff9cbe7a00cddac98@git.kernel.org>
Date: Thu, 27 Aug 2009 16:36:36 GMT
From: tip-bot for Frederic Weisbecker <fweisbec@...il.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
lizf@...fujitsu.com, xiaoguangrong@...fujitsu.com,
fweisbec@...il.com, rostedt@...dmis.org, tglx@...utronix.de,
mhiramat@...hat.com, mingo@...e.hu
Subject: [tip:tracing/core] tracing: Undef TRACE_EVENT_FN between trace events headers inclusion
Commit-ID: 6c347d43eea29221a8ebab9ff9cbe7a00cddac98
Gitweb: http://git.kernel.org/tip/6c347d43eea29221a8ebab9ff9cbe7a00cddac98
Author: Frederic Weisbecker <fweisbec@...il.com>
AuthorDate: Thu, 27 Aug 2009 18:17:34 +0200
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Thu, 27 Aug 2009 18:32:54 +0200
tracing: Undef TRACE_EVENT_FN between trace events headers inclusion
The recent commit:
tracing/events: fix the include file dependencies
fixed a file dependency problem while including more than
one trace event header file.
This fix undefined TRACE_EVENT after an event header macro
preprocessing in order to make tracepoint.h able to correctly declare
the tracepoints necessary for the next event header file.
But now we also need to undefine TRACE_EVENT_FN at the end of an event
header file preprocessing for the same reason.
This fixes the following build error:
In file included from include/trace/events/napi.h:5,
from net/core/net-traces.c:28:
include/linux/tracepoint.h:285:1: warning: "TRACE_EVENT_FN" redefined
In file included from include/trace/define_trace.h:61,
from include/trace/events/skb.h:40,
from net/core/net-traces.c:27:
include/trace/ftrace.h:50:1: warning: this is the location of the previous definition
In file included from include/trace/events/napi.h:5,
from net/core/net-traces.c:28:
include/linux/tracepoint.h:285:1: warning: "TRACE_EVENT_FN" redefined
In file included from include/trace/define_trace.h:61,
from include/trace/events/skb.h:40,
from net/core/net-traces.c:27:
include/trace/ftrace.h:50:1: warning: this is the location of the previous definition
Reported-by: Ingo Molnar <mingo@...e.hu>
Signed-off-by: Frederic Weisbecker <fweisbec@...il.com>
Cc: Masami Hiramatsu <mhiramat@...hat.com>
Cc: Xiao Guangrong <xiaoguangrong@...fujitsu.com>
Cc: Steven Rostedt <rostedt@...dmis.org>
Cc: Li Zefan <lizf@...fujitsu.com>
LKML-Reference: <20090827161732.GA7618@...here>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
include/trace/define_trace.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/trace/define_trace.h b/include/trace/define_trace.h
index a89ed59..2a4b3bf 100644
--- a/include/trace/define_trace.h
+++ b/include/trace/define_trace.h
@@ -62,6 +62,7 @@
#endif
#undef TRACE_EVENT
+#undef TRACE_EVENT_FN
#undef TRACE_HEADER_MULTI_READ
/* Only undef what we defined in this file */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists