Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 737377d1 authored by Steven Rostedt (Red Hat)'s avatar Steven Rostedt (Red Hat) Committed by Amit Pundir
Browse files

UPSTREAM: 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: default avatarSteven Rostedt <rostedt@goodmis.org>

Bug: 31856701
Change-Id: Id8d91d9229911d8df9febe86255a5442ad6ce7a8
(cherry picked from commit c602894814adc93589dde028182101818c5f938b)
Signed-off-by: default avatarPaul Lawrence <paullawrence@google.com>
parent b3d47382
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5920,7 +5920,7 @@ static __init int register_snapshot_cmd(void)
static inline __init int register_snapshot_cmd(void) { return 0; }
#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)
		return tr->dir;
+0 −1
Original line number Diff line number Diff line
@@ -541,7 +541,6 @@ struct dentry *trace_create_file(const char *name,
				 void *data,
				 const struct file_operations *fops);

struct dentry *tracing_init_dentry_tr(struct trace_array *tr);
struct dentry *tracing_init_dentry(void);

struct ring_buffer_event;