]> git.baikalelectronics.ru Git - kernel.git/commitdiff
tracing: Make tracing_snapshot_instance_cond() static
authorZou Wei <zou_wei@huawei.com>
Thu, 23 Apr 2020 04:08:25 +0000 (12:08 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 7 May 2020 17:32:58 +0000 (13:32 -0400)
Fix the following sparse warning:

kernel/trace/trace.c:950:6: warning: symbol 'tracing_snapshot_instance_cond'
was not declared. Should it be static?

Link: http://lkml.kernel.org/r/1587614905-48692-1-git-send-email-zou_wei@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/trace.c

index 9ed6d92768afa441bc01baa16e9be263652c5763..29615f15a820b2f67d66af8084bfcd13936ed9c3 100644 (file)
@@ -947,7 +947,8 @@ int __trace_bputs(unsigned long ip, const char *str)
 EXPORT_SYMBOL_GPL(__trace_bputs);
 
 #ifdef CONFIG_TRACER_SNAPSHOT
-void tracing_snapshot_instance_cond(struct trace_array *tr, void *cond_data)
+static void tracing_snapshot_instance_cond(struct trace_array *tr,
+                                          void *cond_data)
 {
        struct tracer *tracer = tr->current_trace;
        unsigned long flags;