Skip to content

Commit ad1438a

Browse files
Fabian Frederickrostedt
authored andcommitted
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]>
1 parent 8275f69 commit ad1438a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

kernel/trace/trace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ int call_filter_check_discard(struct ftrace_event_call *call, void *rec,
275275
}
276276
EXPORT_SYMBOL_GPL(call_filter_check_discard);
277277

278-
cycle_t buffer_ftrace_now(struct trace_buffer *buf, int cpu)
278+
static cycle_t buffer_ftrace_now(struct trace_buffer *buf, int cpu)
279279
{
280280
u64 ts;
281281

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

602-
void free_snapshot(struct trace_array *tr)
602+
static void free_snapshot(struct trace_array *tr)
603603
{
604604
/*
605605
* We don't free the ring buffer. instead, resize it because

kernel/trace/trace_selftest.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,9 @@ static int trace_selftest_ops(struct trace_array *tr, int cnt)
320320
}
321321

322322
/* Test dynamic code modification and ftrace filters */
323-
int trace_selftest_startup_dynamic_tracing(struct tracer *trace,
324-
struct trace_array *tr,
325-
int (*func)(void))
323+
static int trace_selftest_startup_dynamic_tracing(struct tracer *trace,
324+
struct trace_array *tr,
325+
int (*func)(void))
326326
{
327327
int save_ftrace_enabled = ftrace_enabled;
328328
unsigned long count;

0 commit comments

Comments
 (0)