bpf: Remove repeated struct btf_type declaration
authorWan Jiabing <wanjiabing@vivo.com>
Thu, 1 Apr 2021 07:20:37 +0000 (15:20 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Fri, 2 Apr 2021 23:45:36 +0000 (01:45 +0200)
struct btf_type is declared twice. One is declared at 35th line. The below
one is not needed, hence remove the duplicate.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20210401072037.995849-1-wanjiabing@vivo.com
include/linux/bpf.h

index 9fdd839..ff8cd68 100644 (file)
@@ -928,7 +928,6 @@ struct bpf_link_primer {
 };
 
 struct bpf_struct_ops_value;
-struct btf_type;
 struct btf_member;
 
 #define BPF_STRUCT_OPS_MAX_NR_MEMBERS 64