1
0
Fork 0

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>
hifive-unleashed-5.1
Valdis Klētnieks 2019-03-12 04:52:58 -04:00 committed by Steven Rostedt (VMware)
parent 85f726a35e
commit 0841625201
1 changed files with 1 additions and 1 deletions

View File

@ -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",