aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_nop.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace/trace_nop.c')
-rw-r--r--kernel/trace/trace_nop.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/kernel/trace/trace_nop.c b/kernel/trace/trace_nop.c
index 9fb02c17ad0c..16c9ba060bab 100644
--- a/kernel/trace/trace_nop.c
+++ b/kernel/trace/trace_nop.c
@@ -51,7 +51,7 @@ static void nop_trace_ctrl_update(struct trace_array *tr)
51 stop_nop_trace(tr); 51 stop_nop_trace(tr);
52} 52}
53 53
54static struct tracer nop_trace __read_mostly = 54struct tracer nop_trace __read_mostly =
55{ 55{
56 .name = "nop", 56 .name = "nop",
57 .init = nop_trace_init, 57 .init = nop_trace_init,
@@ -62,8 +62,3 @@ static struct tracer nop_trace __read_mostly =
62#endif 62#endif
63}; 63};
64 64
65__init static int init_nop_trace(void)
66{
67 return register_tracer(&nop_trace);
68}
69device_initcall(init_nop_trace);