Re: [PATCH bpf-next] selftests/bpf: fix compilation error for flow_dissector.c

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

 



On 05/29/2019 11:48 AM, Alan Maguire wrote:
> When building the tools/testing/selftest/bpf subdirectory,
> (running both a local directory "make" and a
> "make -C tools/testing/selftests/bpf") I keep hitting the
> following compilation error:
> 
> prog_tests/flow_dissector.c: In function ‘create_tap’:
> prog_tests/flow_dissector.c:150:38: error: ‘IFF_NAPI’ undeclared (first
> use in this function)
>    .ifr_flags = IFF_TAP | IFF_NO_PI | IFF_NAPI | IFF_NAPI_FRAGS,
>                                       ^
> prog_tests/flow_dissector.c:150:38: note: each undeclared identifier is
> reported only once for each function it appears in
> prog_tests/flow_dissector.c:150:49: error: ‘IFF_NAPI_FRAGS’ undeclared
> 
> Adding include/uapi/linux/if_tun.h to tools/include/uapi/linux
> resolves the problem and ensures the compilation of the file
> does not depend on having up-to-date kernel headers locally.
> 
> Signed-off-by: Alan Maguire <alan.maguire@xxxxxxxxxx>

Applied, thanks!



[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