aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/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 /kernel/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 'kernel/trace')
-rw-r--r--kernel/trace/trace_export.c2
-rw-r--r--kernel/trace/trace_syscalls.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/kernel/trace/trace_export.c b/kernel/trace/trace_export.c
index 4f6a91c1370c..d21a74670088 100644
--- a/kernel/trace/trace_export.c
+++ b/kernel/trace/trace_export.c
@@ -168,7 +168,7 @@ ftrace_define_fields_##name(struct ftrace_event_call *event_call) \
168#define FTRACE_ENTRY_REG(call, struct_name, etype, tstruct, print, filter,\ 168#define FTRACE_ENTRY_REG(call, struct_name, etype, tstruct, print, filter,\
169 regfn) \ 169 regfn) \
170 \ 170 \
171struct ftrace_event_class event_class_ftrace_##call = { \ 171struct ftrace_event_class __refdata event_class_ftrace_##call = { \
172 .system = __stringify(TRACE_SYSTEM), \ 172 .system = __stringify(TRACE_SYSTEM), \
173 .define_fields = ftrace_define_fields_##call, \ 173 .define_fields = ftrace_define_fields_##call, \
174 .fields = LIST_HEAD_INIT(event_class_ftrace_##call.fields),\ 174 .fields = LIST_HEAD_INIT(event_class_ftrace_##call.fields),\
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c
index 00b5c3e6fbbe..1cd37ffb4093 100644
--- a/kernel/trace/trace_syscalls.c
+++ b/kernel/trace/trace_syscalls.c
@@ -479,7 +479,7 @@ struct trace_event_functions exit_syscall_print_funcs = {
479 .trace = print_syscall_exit, 479 .trace = print_syscall_exit,
480}; 480};
481 481
482struct ftrace_event_class event_class_syscall_enter = { 482struct ftrace_event_class __refdata event_class_syscall_enter = {
483 .system = "syscalls", 483 .system = "syscalls",
484 .reg = syscall_enter_register, 484 .reg = syscall_enter_register,
485 .define_fields = syscall_enter_define_fields, 485 .define_fields = syscall_enter_define_fields,
@@ -487,7 +487,7 @@ struct ftrace_event_class event_class_syscall_enter = {
487 .raw_init = init_syscall_trace, 487 .raw_init = init_syscall_trace,
488}; 488};
489 489
490struct ftrace_event_class event_class_syscall_exit = { 490struct ftrace_event_class __refdata event_class_syscall_exit = {
491 .system = "syscalls", 491 .system = "syscalls",
492 .reg = syscall_exit_register, 492 .reg = syscall_exit_register,
493 .define_fields = syscall_exit_define_fields, 493 .define_fields = syscall_exit_define_fields,