summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorValdis Klētnieks <valdis.kletnieks@vt.edu>2019-03-12 04:52:58 -0400
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-03-12 10:59:51 -0400
commit0841625201b649c0b1bf0f0e25cf4401e68fb8fd (patch)
treee2fc5eb60c995eeeeba2dc1db0179c3f6f304fc3 /kernel/trace
parent85f726a35e504418607b77c5e7da165dc1ea63ce (diff)
downloadlinux-0841625201b649c0b1bf0f0e25cf4401e68fb8fd.tar.bz2
tracing/probes: Make reserved_field_names 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. Link: http://lkml.kernel.org/r/2478.1552380778@turing-police Signed-off-by: Valdis Kletnieks <valdis.kletnieks@vt.edu> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace_probe.c2
1 files changed, 1 insertions, 1 deletions
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",