[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <2478.1552380778@turing-police>
Date: Tue, 12 Mar 2019 04:52:58 -0400
From: "Valdis Klētnieks" <valdis.kletnieks@...edu>
To: Steven Rostedt <rostedt@...dmis.org>,
Ingo Molnar <mingo@...hat.com>
cc: linux-kernel@...r.kernel.org
Subject: [PATCH] kernel/trace/trace_probe.c - make variable static
sparse complains:
CHECK kernel/trace/trace_probe.c
kernel/trace/trace_probe.c:16:12: warning: symbol 'reserved_field_names' was not declared. Should it be static?
Yes, it should be static.
Signed-off-by: Valdis Kletnieks <valdis.kletnieks@...edu>
diff --git a/kernel/trace/trace_probe.c b/kernel/trace/trace_probe.c
index 89da34b326e3..cfcf77e6fb19 100644
--- a/kernel/trace/trace_probe.c
+++ b/kernel/trace/trace_probe.c
@@ -13,7 +13,7 @@
#include "trace_probe.h"
-const char *reserved_field_names[] = {
+static const char *reserved_field_names[] = {
"common_type",
"common_flags",
"common_preempt_count",
Powered by blists - more mailing lists