tracing: Add static to local functions
authorFabian Frederick <fabf@skynet.be>
Thu, 17 Apr 2014 19:44:42 +0000 (21:44 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 21 Apr 2014 18:00:46 +0000 (14:00 -0400)
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: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace_selftest.c

index bb5147a55be54d26656ef3228c7dd12bf1baa48a..cb41e98cc64b0096897eafda5b5bd09f509c8fd3 100644 (file)
@@ -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
index 1c95cd7a98c84b0a2f3b7180f77d6cc27c39bc4b..5ef60499dc8e6c6df909794c1a54eed4b9bb2dbf 100644 (file)
@@ -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;