]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Remove unused vairable 'bpf_xdp_link_lops'
authorYueHaibing <yuehaibing@huawei.com>
Thu, 26 Mar 2020 03:16:13 +0000 (11:16 +0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 26 Mar 2020 23:46:32 +0000 (16:46 -0700)
commit70a19c77b8eec49bef67123e1d5bdbc4c2cf728f
treea195a736c2323619e3d5a2bd52f05b387fbd846a
parent41f824f890086ed83c5cfb47d711a1df019b2afe
bpf: Remove unused vairable 'bpf_xdp_link_lops'

kernel/bpf/syscall.c:2263:34: warning: 'bpf_xdp_link_lops' defined but not used [-Wunused-const-variable=]
 static const struct bpf_link_ops bpf_xdp_link_lops;
                                  ^~~~~~~~~~~~~~~~~

commit a837d1fd8963 ("bpf: Introduce pinnable bpf_link abstraction")
involded this unused variable, remove it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200326031613.19372-1-yuehaibing@huawei.com
kernel/bpf/syscall.c