aboutsummaryrefslogtreecommitdiff
path: root/kernel/trace
diff options
context:
space:
mode:
authorMathieu Malaterre2018-05-16 21:30:12 +0200
committerSteven Rostedt (VMware)2018-12-22 08:21:06 -0500
commit1cce377df1800154301525a8ee04100dd83c9633 (patch)
tree2f419a8d4bab1c5815fcd400b34c8a8783882285 /kernel/trace
parentbea6957d5cd7cbb327083d3bcf080133ee63ef65 (diff)
tracing: Make function ‘ftrace_exports’ static
In commit 478409dd683d ("tracing: Add hook to function tracing for other subsystems to use"), a new function ‘ftrace_exports’ was added. Since this function can be made static, make it so. Silence the following warning triggered using W=1: kernel/trace/trace.c:2451:6: warning: no previous prototype for ‘ftrace_exports’ [-Wmissing-prototypes] Link: http://lkml.kernel.org/r/20180516193012.25390-1-malat@debian.org Signed-off-by: Mathieu Malaterre <malat@debian.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 911470ad9e94..5afcfecb4bc2 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -2452,7 +2452,7 @@ static inline void ftrace_exports_disable(void)
static_branch_disable(&ftrace_exports_enabled);
}
-void ftrace_exports(struct ring_buffer_event *event)
+static void ftrace_exports(struct ring_buffer_event *event)
{
struct trace_export *export;