aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorDenis Efremov <efremov@linux.com>2019-07-04 20:21:10 +0300
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-08-31 06:51:49 -0400
commit595a438c78dbdc43d6c9db4f437267f0bd1548bf (patch)
tree452e558560ada274cdd1c6edd12e993fff9506cd /kernel
parentftrace: Check for successful allocation of hash (diff)
downloadlinux-dev-595a438c78dbdc43d6c9db4f437267f0bd1548bf.tar.xz
linux-dev-595a438c78dbdc43d6c9db4f437267f0bd1548bf.zip
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: f45d1225adb04 ("tracing: Kernel access to Ftrace instances") Reviewed-by: Joe Jin <joe.jin@oracle.com> Signed-off-by: Denis Efremov <efremov@linux.com> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
index c7506bc81b75..648930823b57 100644
--- a/kernel/trace/trace_events.c
+++ b/kernel/trace/trace_events.c
@@ -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;