projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32e4c6f
)
bpf: Make bpf_link_fops static
author
Zou Wei
<zou_wei@huawei.com>
Thu, 23 Apr 2020 02:32:40 +0000
(10:32 +0800)
committer
Alexei Starovoitov
<ast@kernel.org>
Sat, 25 Apr 2020 00:42:44 +0000
(17:42 -0700)
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 <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link:
https://lore.kernel.org/bpf/1587609160-117806-1-git-send-email-zou_wei@huawei.com
kernel/bpf/syscall.c
patch
|
blob
|
history
diff --git
a/kernel/bpf/syscall.c
b/kernel/bpf/syscall.c
index bca58c235ac0c788ea37e4e965fcf112b9cb842f..7626b802447128f4fc5ec789e24d9bb6d8e96a27 100644
(file)
--- a/
kernel/bpf/syscall.c
+++ b/
kernel/bpf/syscall.c
@@
-2283,7
+2283,7
@@
static void bpf_link_show_fdinfo(struct seq_file *m, struct file *filp)
}
#endif
-const struct file_operations bpf_link_fops = {
+
static
const struct file_operations bpf_link_fops = {
#ifdef CONFIG_PROC_FS
.show_fdinfo = bpf_link_show_fdinfo,
#endif