Re: [PATCH bpf-next] bpf: remove unused vairable 'bpf_xdp_link_lops'
From: Alexei Starovoitov
Date: Thu Mar 26 2020 - 19:48:51 EST
On Wed, Mar 25, 2020 at 8:16 PM YueHaibing <yuehaibing@xxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxx>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
Applied. Thanks