From: Xiao Guangrong Date: Tue, 25 Aug 2009 06:06:22 +0000 (+0800) Subject: tracing/events: fix the include file dependencies X-Git-Tag: v2.6.32-rc1~718^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ac35daa9343936038a3c9c4f4d6d3fe6a2a7bd8;p=pandora-kernel.git tracing/events: fix the include file dependencies The TRACE_EVENT depends on the include/linux/tracepoint.h first and include/trace/ftrace.h later, if we include the ftrace.h early, a building error will occur. Both define TRACE_EVENT in trace_a.h and trace_b.h, if we include those in .c file, like this: #define CREATE_TRACE_POINTS include include The above will not work, because the TRACE_EVENT was re-defined by the previous .h file. Reported-by: Wei Yongjun Signed-off-by: Xiao Guangrong LKML-Reference: <4A937F5E.3020802@cn.fujitsu.com> Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed