[PATCH 3/3] tracing: make trace_array_create() static

From: Jakub Kicinski
Date: Wed Aug 28 2019 - 01:26:24 EST


Fix the W=1 missing prototype warning:

kernel/trace/trace.c:8319:21: warning: no previous prototype for âtrace_array_createâ [-Wmissing-prototypes]

Signed-off-by: Jakub Kicinski <jakub.kicinski@xxxxxxxxxxxxx>
---
kernel/trace/trace.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 4cd9855dcd88..c7491d9b0ac7 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -8316,7 +8316,7 @@ static void update_tracer_options(struct trace_array *tr)
mutex_unlock(&trace_types_lock);
}

-struct trace_array *trace_array_create(const char *name)
+static struct trace_array *trace_array_create(const char *name)
{
struct trace_array *tr;
int ret;
--
2.21.0