samples: ftrace: Make some global variables static
authorTom Rix <trix@redhat.com>
Mon, 30 Jan 2023 19:37:08 +0000 (11:37 -0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Tue, 7 Feb 2023 17:48:00 +0000 (12:48 -0500)
commitaef70ebd624cf2959c531b652365da83f2b19352
treebccaf0773241458f01badaf2dcb1056309634d2a
parentf94fe7048a352ff8914232a18e2e2f18f8a5ac81
samples: ftrace: Make some global variables static

smatch reports this representative issue
samples/ftrace/ftrace-ops.c:15:14: warning: symbol 'nr_function_calls' was not declared. Should it be static?

The nr_functions_calls and several other global variables are only
used in ftrace-ops.c, so they should be static.
Remove the instances of initializing static int to 0.

Link: https://lore.kernel.org/linux-trace-kernel/20230130193708.1378108-1-trix@redhat.com
Signed-off-by: Tom Rix <trix@redhat.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
samples/ftrace/ftrace-ops.c