Re: 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]

 



On Wed, Dec 27, 2023 at 7:10 PM Daniel Xu <dxu@xxxxxxxxx> wrote:
>
> Hi Vincent,
>
> On Wed, Dec 27, 2023 at 06:59:12PM -0800, Vincent Li wrote:
> > 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'
>
> [...]
>
> Do you have CONFIG_NET_FOU enabled? I think you'll need that for
> test_tunnel to build correctly. BPF CI enables this.
> tools/testing/selftests/bpf/config has it set to =y.
>

Thanks Daniel for your quick response. I have CONFIG_NET_FOU enabled
but as module (m), not builtin (y), I guess if enabled as module, the
vmlinux.h would not include the bpf_fou_encap type. I will try
tools/testing/selftests/bpf/config

> Thanks,
> Daniel





[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