]> Pileus Git - ~andy/linux/commitdiff
tracing: Make tracing_open_generic_{tr,tc}() static
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 3 Jul 2013 00:30:52 +0000 (20:30 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 3 Jul 2013 00:42:33 +0000 (20:42 -0400)
I have patches that will use tracing_open_generic_tr/tc() in other
files, but as they are not ready to be merged yet, and Fengguang Wu's
sparse scripts pointed out that these functions were not declared
anywhere, I'll make them static for now.

When these functions are required to be used elsewhere, I'll remove
the static then.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c

index f6fed9e51c6498d7657860ce380c4f3ab4a24413..dc473b51415fa7a6e5d88a4a2ad6b192fd56389c 100644 (file)
@@ -2960,7 +2960,7 @@ int tracing_open_generic(struct inode *inode, struct file *filp)
  * Open and update trace_array ref count.
  * Must have the current trace_array passed to it.
  */
-int tracing_open_generic_tr(struct inode *inode, struct file *filp)
+static int tracing_open_generic_tr(struct inode *inode, struct file *filp)
 {
        struct trace_array *tr = inode->i_private;
 
@@ -2976,7 +2976,7 @@ int tracing_open_generic_tr(struct inode *inode, struct file *filp)
        
 }
 
-int tracing_open_generic_tc(struct inode *inode, struct file *filp)
+static int tracing_open_generic_tc(struct inode *inode, struct file *filp)
 {
        struct trace_cpu *tc = inode->i_private;
        struct trace_array *tr = tc->tr;