Mark function as static in kernel/trace/trace_selftest.c because it is
not used outside this file.

This eliminates the following warning in kernel/trace/trace_selftest.c:
kernel/trace/trace_selftest.c:318:5: warning: no previous prototype for 
‘trace_selftest_startup_dynamic_tracing’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.khe...@gmail.com>
Reviewed-by: Josh Triplett <j...@joshtriplett.org>
---
 kernel/trace/trace_selftest.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/trace/trace_selftest.c b/kernel/trace/trace_selftest.c
index e98fca6..bfecd63 100644
--- a/kernel/trace/trace_selftest.c
+++ b/kernel/trace/trace_selftest.c
@@ -315,9 +315,9 @@ static int trace_selftest_ops(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;
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to