Skip to content

Commit e3655df

Browse files
sunlimingrostedt
authored andcommitted
fprobe/samples: Make sample_probe static
This symbol is not used outside of fprobe_example.c, so marks it static. Fixes the following warning: sparse warnings: (new ones prefixed by >>) >> samples/fprobe/fprobe_example.c:23:15: sparse: sparse: symbol 'sample_probe' was not declared. Should it be static? Link: https://lkml.kernel.org/r/[email protected] Reported-by: kernel test robot <[email protected]> Signed-off-by: sunliming <[email protected]> Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 0bb7e14 commit e3655df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/fprobe/fprobe_example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
#define BACKTRACE_DEPTH 16
2222
#define MAX_SYMBOL_LEN 4096
23-
struct fprobe sample_probe;
23+
static struct fprobe sample_probe;
2424
static unsigned long nhit;
2525

2626
static char symbol[MAX_SYMBOL_LEN] = "kernel_clone";

0 commit comments

Comments
 (0)