mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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/[email protected] Signed-off-by: Fabian Frederick <[email protected]> Signed-off-by: Steven Rostedt <[email protected]>
This commit is contained in:
parent
8275f69f07
commit
ad1438a076
2 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -320,9 +320,9 @@ 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,
|
||||
struct trace_array *tr,
|
||||
int (*func)(void))
|
||||
static int trace_selftest_startup_dynamic_tracing(struct tracer *trace,
|
||||
struct trace_array *tr,
|
||||
int (*func)(void))
|
||||
{
|
||||
int save_ftrace_enabled = ftrace_enabled;
|
||||
unsigned long count;
|
||||
|
|
|
|||
Loading…
Reference in a new issue