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/20220606075659.674556-1-sunliming@kylinos.cn Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: sunliming <sunliming@kylinos.cn> Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
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)