diff options
author | Zou Wei <zou_wei@huawei.com> | 2020-04-23 04:32:40 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-04-25 02:42:44 +0200 |
commit | 6f302bfb221470e712ce3e5911fb83cdca174387 (patch) | |
tree | ef260fbdf088432ff4e51d25dec2808f5fc1151d /kernel | |
parent | bpftool: Respect the -d option in struct_ops cmd (diff) | |
download | linux-6f302bfb221470e712ce3e5911fb83cdca174387.tar.xz linux-6f302bfb221470e712ce3e5911fb83cdca174387.zip |
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 <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
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/bpf/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c index bca58c235ac0..7626b8024471 100644 --- 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 |