Skip to content

Commit ff585c5

Browse files
YueHaibingrostedt
authored andcommitted
tracing: Make two symbols static
Fix sparse warnings: kernel/trace/trace.c:6927:24: warning: symbol 'get_tracing_log_err' was not declared. Should it be static? kernel/trace/trace.c:8196:15: warning: symbol 'trace_instance_dir' was not declared. Should it be static? Link: http://lkml.kernel.org/r/20190614153210.24424-1-yuehaibing@huawei.com Acked-by: Tom Zanussi <tom.zanussi@linux.intel.com> Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent cbdaeaf commit ff585c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎kernel/trace/trace.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6923,7 +6923,7 @@ struct tracing_log_err {
69236923

69246924
static DEFINE_MUTEX(tracing_err_log_lock);
69256925

6926-
struct tracing_log_err *get_tracing_log_err(struct trace_array *tr)
6926+
static struct tracing_log_err *get_tracing_log_err(struct trace_array *tr)
69276927
{
69286928
struct tracing_log_err *err;
69296929

@@ -8192,7 +8192,7 @@ static const struct file_operations buffer_percent_fops = {
81928192
.llseek = default_llseek,
81938193
};
81948194

8195-
struct dentry *trace_instance_dir;
8195+
static struct dentry *trace_instance_dir;
81968196

81978197
static void
81988198
init_tracer_tracefs(struct trace_array *tr, struct dentry *d_tracer);

0 commit comments

Comments
 (0)