aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2013-03-04 01:15:59 -0500
committerSteven Rostedt <rostedt@goodmis.org>2013-03-15 00:34:54 -0400
commit523c81135bb23b2d9a8c21365d90d21b1309c138 (patch)
treebbecc47a046a3c2a6be1996d1bfdc3e902b96aa3 /include/trace
parent315326c16ad08771fe0f075a08a18c99976f29f5 (diff)
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')
-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) \
572#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \ 572#define DECLARE_EVENT_CLASS(call, proto, args, tstruct, assign, print) \
573_TRACE_PERF_PROTO(call, PARAMS(proto)); \ 573_TRACE_PERF_PROTO(call, PARAMS(proto)); \
574static const char print_fmt_##call[] = print; \ 574static const char print_fmt_##call[] = print; \
575static struct ftrace_event_class __used event_class_##call = { \ 575static struct ftrace_event_class __used __refdata event_class_##call = { \
576 .system = __stringify(TRACE_SYSTEM), \ 576 .system = __stringify(TRACE_SYSTEM), \
577 .define_fields = ftrace_define_fields_##call, \ 577 .define_fields = ftrace_define_fields_##call, \
578 .fields = LIST_HEAD_INIT(event_class_##call.fields),\ 578 .fields = LIST_HEAD_INIT(event_class_##call.fields),\