aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/trace/trace.c2
-rw-r--r--kernel/trace/trace.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index f82e53b0e5a7..2668a0d742ee 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -5815,7 +5815,7 @@ static __init int register_snapshot_cmd(void)
5815static inline __init int register_snapshot_cmd(void) { return 0; } 5815static inline __init int register_snapshot_cmd(void) { return 0; }
5816#endif /* defined(CONFIG_TRACER_SNAPSHOT) && defined(CONFIG_DYNAMIC_FTRACE) */ 5816#endif /* defined(CONFIG_TRACER_SNAPSHOT) && defined(CONFIG_DYNAMIC_FTRACE) */
5817 5817
5818struct dentry *tracing_init_dentry_tr(struct trace_array *tr) 5818static struct dentry *tracing_init_dentry_tr(struct trace_array *tr)
5819{ 5819{
5820 if (tr->dir) 5820 if (tr->dir)
5821 return tr->dir; 5821 return tr->dir;
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h
index 0eddfeb05fee..dd8205a35760 100644
--- a/kernel/trace/trace.h
+++ b/kernel/trace/trace.h
@@ -542,7 +542,6 @@ struct dentry *trace_create_file(const char *name,
542 void *data, 542 void *data,
543 const struct file_operations *fops); 543 const struct file_operations *fops);
544 544
545struct dentry *tracing_init_dentry_tr(struct trace_array *tr);
546struct dentry *tracing_init_dentry(void); 545struct dentry *tracing_init_dentry(void);
547 546
548struct ring_buffer_event; 547struct ring_buffer_event;