Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 70ed506c3bbc ("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

authored by

YueHaibing and committed by
Alexei Starovoitov
f54a5bba e28784e3

-1
-1
kernel/bpf/syscall.c
··· 2252 2252 #ifdef CONFIG_PROC_FS 2253 2253 static const struct bpf_link_ops bpf_raw_tp_lops; 2254 2254 static const struct bpf_link_ops bpf_tracing_link_lops; 2255 - static const struct bpf_link_ops bpf_xdp_link_lops; 2256 2255 2257 2256 static void bpf_link_show_fdinfo(struct seq_file *m, struct file *filp) 2258 2257 {