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

Commit ad1438a0 authored by Fabian Frederick's avatar Fabian Frederick Committed by Steven Rostedt
Browse files

tracing: Add static to local functions

This patch adds static to the following functions:
-cycle_t buffer_ftrace_now
-void free_snapshot
-int trace_selftest_startup_dynamic_tracing

Link: http://lkml.kernel.org/p/20140417214442.d7abc7c0b0e4b90e7fedecc9@skynet.be



Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
parent 8275f69f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -275,7 +275,7 @@ int call_filter_check_discard(struct ftrace_event_call *call, void *rec,
}
EXPORT_SYMBOL_GPL(call_filter_check_discard);

cycle_t buffer_ftrace_now(struct trace_buffer *buf, int cpu)
static cycle_t buffer_ftrace_now(struct trace_buffer *buf, int cpu)
{
	u64 ts;

@@ -599,7 +599,7 @@ static int alloc_snapshot(struct trace_array *tr)
	return 0;
}

void free_snapshot(struct trace_array *tr)
static void free_snapshot(struct trace_array *tr)
{
	/*
	 * We don't free the ring buffer. instead, resize it because
+3 −3
Original line number Diff line number Diff line
@@ -320,7 +320,7 @@ static int trace_selftest_ops(struct trace_array *tr, int cnt)
}

/* Test dynamic code modification and ftrace filters */
int trace_selftest_startup_dynamic_tracing(struct tracer *trace,
static int trace_selftest_startup_dynamic_tracing(struct tracer *trace,
						  struct trace_array *tr,
						  int (*func)(void))
{