Эх сурвалжийг харах

tracing: Make tracing_init_dentry_tr() static

tracing_init_dentry_tr() is not used outside of trace.c, it should
be static.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Steven Rostedt (Red Hat) 10 жил өмнө
parent
commit
c602894814

+ 1 - 1
kernel/trace/trace.c

@@ -5815,7 +5815,7 @@ static __init int register_snapshot_cmd(void)
 static inline __init int register_snapshot_cmd(void) { return 0; }
 static inline __init int register_snapshot_cmd(void) { return 0; }
 #endif /* defined(CONFIG_TRACER_SNAPSHOT) && defined(CONFIG_DYNAMIC_FTRACE) */
 #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)
 	if (tr->dir)
 		return tr->dir;
 		return tr->dir;

+ 0 - 1
kernel/trace/trace.h

@@ -542,7 +542,6 @@ struct dentry *trace_create_file(const char *name,
 				 void *data,
 				 void *data,
 				 const struct file_operations *fops);
 				 const struct file_operations *fops);
 
 
-struct dentry *tracing_init_dentry_tr(struct trace_array *tr);
 struct dentry *tracing_init_dentry(void);
 struct dentry *tracing_init_dentry(void);
 
 
 struct ring_buffer_event;
 struct ring_buffer_event;