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

Commit 595a438c authored by Denis Efremov's avatar Denis Efremov Committed by Steven Rostedt (VMware)
Browse files

tracing: Make exported ftrace_set_clr_event non-static

The function ftrace_set_clr_event is declared static and marked
EXPORT_SYMBOL_GPL(), which is at best an odd combination. Because the
function was decided to be a part of API, this commit removes the static
attribute and adds the declaration to the header.

Link: http://lkml.kernel.org/r/20190704172110.27041-1-efremov@linux.com



Fixes: f45d1225 ("tracing: Kernel access to Ftrace instances")
Reviewed-by: default avatarJoe Jin <joe.jin@oracle.com>
Signed-off-by: default avatarDenis Efremov <efremov@linux.com>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent 5b0022dd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -548,6 +548,7 @@ extern int trace_event_get_offsets(struct trace_event_call *call);

#define is_signed_type(type)	(((type)(-1)) < (type)1)

int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set);
int trace_set_clr_event(const char *system, const char *event, int set);

/*
+1 −1
Original line number Diff line number Diff line
@@ -787,7 +787,7 @@ static int __ftrace_set_clr_event(struct trace_array *tr, const char *match,
	return ret;
}

static int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set)
int ftrace_set_clr_event(struct trace_array *tr, char *buf, int set)
{
	char *event = NULL, *sub = NULL, *match;
	int ret;