Skip to content

Commit

Permalink
tracing: Make function ‘ftrace_exports’ static
Browse files Browse the repository at this point in the history
In commit 478409d ("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>
  • Loading branch information
Mathieu Malaterre authored and Steven Rostedt (VMware) committed Dec 22, 2018
1 parent bea6957 commit 1cce377
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1cce377

Please sign in to comment.