progs/test_tunnel_kern.c:802:43: error: use of undeclared identifier 'FOU_BPF_ENCAP_FOU'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

When I make the bpf-next master branch bpf selftests, which failed
with error below, seems related to commit 02b4e126e6 bpf: selftests:
test_tunnel: Use vmlinux.h declarations ?

  CLNG-BPF [test_maps] test_tunnel_kern.bpf.o

progs/test_tunnel_kern.c:30:13: error: declaration of 'struct
bpf_fou_encap' will not be visible outside of this function
[-Werror,-Wvisibility]

                          struct bpf_fou_encap *encap, int type) __ksym;

                                 ^

progs/test_tunnel_kern.c:32:13: error: declaration of 'struct
bpf_fou_encap' will not be visible outside of this function
[-Werror,-Wvisibility]

                          struct bpf_fou_encap *encap) __ksym;

                                 ^

progs/test_tunnel_kern.c:741:23: error: variable has incomplete type
'struct bpf_fou_encap'

        struct bpf_fou_encap encap = {};

                             ^

progs/test_tunnel_kern.c:741:9: note: forward declaration of 'struct
bpf_fou_encap'

        struct bpf_fou_encap encap = {};

               ^

progs/test_tunnel_kern.c:765:43: error: use of undeclared identifier
'FOU_BPF_ENCAP_GUE'

        ret = bpf_skb_set_fou_encap(skb, &encap, FOU_BPF_ENCAP_GUE);

                                                 ^

progs/test_tunnel_kern.c:778:23: error: variable has incomplete type
'struct bpf_fou_encap'

        struct bpf_fou_encap encap = {};

                             ^

progs/test_tunnel_kern.c:778:9: note: forward declaration of 'struct
bpf_fou_encap'

        struct bpf_fou_encap encap = {};

               ^

progs/test_tunnel_kern.c:802:43: error: use of undeclared identifier
'FOU_BPF_ENCAP_FOU'

        ret = bpf_skb_set_fou_encap(skb, &encap, FOU_BPF_ENCAP_FOU);

                                                 ^

progs/test_tunnel_kern.c:816:23: error: variable has incomplete type
'struct bpf_fou_encap'

        struct bpf_fou_encap encap = {};

                             ^

progs/test_tunnel_kern.c:816:9: note: forward declaration of 'struct
bpf_fou_encap'

        struct bpf_fou_encap encap = {};

               ^

7 errors generated.




[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux