aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorTom Rix <[email protected]>2023-01-30 11:37:08 -0800
committerSteven Rostedt (Google) <[email protected]>2023-02-07 12:48:00 -0500
commitaef70ebd624cf2959c531b652365da83f2b19352 (patch)
treebccaf0773241458f01badaf2dcb1056309634d2a /lib/test_fortify/write_overflow-strncpy-src.c
parentf94fe7048a352ff8914232a18e2e2f18f8a5ac81 (diff)
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/[email protected] Signed-off-by: Tom Rix <[email protected]> Acked-by: Mark Rutland <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions