From: Geliang Tang Date: Mon, 17 Jul 2023 08:32:52 +0000 (+0800) Subject: bpf: Drop useless btf_vmlinux in bpf_tcp_ca X-Git-Tag: v6.6.17~4098^2~371^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8daf847714ec55fe590d1135e26c531658b2ac1c;p=platform%2Fkernel%2Flinux-rpi.git bpf: Drop useless btf_vmlinux in bpf_tcp_ca The code using btf_vmlinux in bpf_tcp_ca is removed by the commit 9f0265e921de ("bpf: Require only one of cong_avoid() and cong_control() from a TCP CC") so drop this useless btf_vmlinux declaration. Signed-off-by: Geliang Tang Link: https://lore.kernel.org/r/4d38da4eadaba476bd92ffcd7a5a03a5e28745c0.1689582557.git.geliang.tang@suse.com Signed-off-by: Alexei Starovoitov --- diff --git a/net/ipv4/bpf_tcp_ca.c b/net/ipv4/bpf_tcp_ca.c index 4406d79..39dcccf 100644 --- a/net/ipv4/bpf_tcp_ca.c +++ b/net/ipv4/bpf_tcp_ca.c @@ -51,8 +51,6 @@ static bool is_unsupported(u32 member_offset) return false; } -extern struct btf *btf_vmlinux; - static bool bpf_tcp_ca_is_valid_access(int off, int size, enum bpf_access_type type, const struct bpf_prog *prog,