tracing: Make tracing_init_dentry_tr() static
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Tue, 27 Jan 2015 01:38:39 +0000 (20:38 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 2 Feb 2015 15:22:23 +0000 (10:22 -0500)
tracing_init_dentry_tr() is not used outside of trace.c, it should
be static.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h

index f82e53b0e5a7cafa9b7b3fe49b47738df9f26934..2668a0d742eedaa0e1c7d9988bcc90f786fe4ba4 100644 (file)
@@ -5815,7 +5815,7 @@ static __init int register_snapshot_cmd(void)
 static inline __init int register_snapshot_cmd(void) { return 0; }
 #endif /* defined(CONFIG_TRACER_SNAPSHOT) && defined(CONFIG_DYNAMIC_FTRACE) */
 
-struct dentry *tracing_init_dentry_tr(struct trace_array *tr)
+static struct dentry *tracing_init_dentry_tr(struct trace_array *tr)
 {
        if (tr->dir)
                return tr->dir;
index 0eddfeb05fee1349332cf30fb51ef647ff91a9a4..dd8205a35760d7a4b8bf53543f52abd0f1f9a6aa 100644 (file)
@@ -542,7 +542,6 @@ struct dentry *trace_create_file(const char *name,
                                 void *data,
                                 const struct file_operations *fops);
 
-struct dentry *tracing_init_dentry_tr(struct trace_array *tr);
 struct dentry *tracing_init_dentry(void);
 
 struct ring_buffer_event;