Skip to content

Commit

Permalink
tracing/probes: Make reserved_field_names static
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
  • Loading branch information
valdisk authored and rostedt committed Mar 12, 2019
1 parent 85f726a commit 0841625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/trace/trace_probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0841625

Please sign in to comment.