Skip to content

Commit 192b799

Browse files
SamuelZOUrostedt
authored andcommitted
tracing: Make tracing_snapshot_instance_cond() static
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/[email protected] Reported-by: Hulk Robot <[email protected]> Signed-off-by: Zou Wei <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent f094a23 commit 192b799

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/trace/trace.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,8 @@ int __trace_bputs(unsigned long ip, const char *str)
947947
EXPORT_SYMBOL_GPL(__trace_bputs);
948948

949949
#ifdef CONFIG_TRACER_SNAPSHOT
950-
void tracing_snapshot_instance_cond(struct trace_array *tr, void *cond_data)
950+
static void tracing_snapshot_instance_cond(struct trace_array *tr,
951+
void *cond_data)
951952
{
952953
struct tracer *tracer = tr->current_trace;
953954
unsigned long flags;

0 commit comments

Comments
 (0)