Skip to content

Commit f54a5bb

Browse files
YueHaibingAlexei Starovoitov
authored andcommitted
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 70ed506 ("bpf: Introduce pinnable bpf_link abstraction") involded this unused variable, remove it. Reported-by: Hulk Robot <[email protected]> Signed-off-by: YueHaibing <[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 e28784e commit f54a5bb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

kernel/bpf/syscall.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2252,7 +2252,6 @@ static int bpf_link_release(struct inode *inode, struct file *filp)
22522252
#ifdef CONFIG_PROC_FS
22532253
static const struct bpf_link_ops bpf_raw_tp_lops;
22542254
static const struct bpf_link_ops bpf_tracing_link_lops;
2255-
static const struct bpf_link_ops bpf_xdp_link_lops;
22562255

22572256
static void bpf_link_show_fdinfo(struct seq_file *m, struct file *filp)
22582257
{

0 commit comments

Comments
 (0)