Skip to content

Commit 6f302bf

Browse files
SamuelZOUAlexei Starovoitov
authored andcommitted
bpf: Make bpf_link_fops static
Fix the following sparse warning: kernel/bpf/syscall.c:2289:30: warning: symbol 'bpf_link_fops' was not declared. Should it be static? Reported-by: Hulk Robot <[email protected]> Signed-off-by: Zou Wei <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 32e4c6f commit 6f302bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/bpf/syscall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2283,7 +2283,7 @@ static void bpf_link_show_fdinfo(struct seq_file *m, struct file *filp)
22832283
}
22842284
#endif
22852285

2286-
const struct file_operations bpf_link_fops = {
2286+
static const struct file_operations bpf_link_fops = {
22872287
#ifdef CONFIG_PROC_FS
22882288
.show_fdinfo = bpf_link_show_fdinfo,
22892289
#endif

0 commit comments

Comments
 (0)