summaryrefslogtreecommitdiffstats
path: root/include/trace/ftrace.h
diff options
context:
space:
mode:
authorLi Zefan2013-03-04 07:15:59 +0100
committerSteven Rostedt2013-03-15 05:34:54 +0100
commit523c81135bb23b2d9a8c21365d90d21b1309c138 (patch)
treebbecc47a046a3c2a6be1996d1bfdc3e902b96aa3 /include/trace/ftrace.h
parenttracing: Fix trace events build without modules (diff)
downloadkernel-qcow2-linux-523c81135bb23b2d9a8c21365d90d21b1309c138.tar.gz
kernel-qcow2-linux-523c81135bb23b2d9a8c21365d90d21b1309c138.tar.xz
kernel-qcow2-linux-523c81135bb23b2d9a8c21365d90d21b1309c138.zip
tracing: Fix some section mismatch warnings
As we've added __init annotation to field-defining functions, we should add __refdata annotation to event_call variables, which reference those functions. Link: http://lkml.kernel.org/r/51343C1F.2050502@huawei.com Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'include/trace/ftrace.h')
-rw-r--r--include/trace/ftrace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/trace/ftrace.h b/include/trace/ftrace.h
index a536f66f84c6..bbf09c2021b9 100644
--- a/include/trace/ftrace.h
+++ b/include/trace/ftrace.h
@@ -572,7 +572,7 @@ static inline void ftrace_test_probe_##call(void) \
#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
_TRACE_PERF_PROTO(call, PARAMS(proto)); \
static const char print_fmt_##call[] = print; \
-static struct ftrace_event_class __used event_class_##call = { \
+static struct ftrace_event_class __used __refdata event_class_##call = { \
.system = __stringify(TRACE_SYSTEM), \
.define_fields = ftrace_define_fields_##call, \
.fields = LIST_HEAD_INIT(event_class_##call.fields),\