selftests/bpf: missing headers test_lwt_seg6local
authorMathieu Xhonneux <m.xhonneux@gmail.com>
Sat, 26 May 2018 14:44:08 +0000 (15:44 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 28 May 2018 15:41:00 +0000 (17:41 +0200)
commit3b296633ae6b91bfff815eb005d220b6ad4a47b1
tree0be00728fb7a688d58df00c5202e401fb7c7dd63
parentdc3b8ae9d271897e09b27fa4e4e0000de98590d1
selftests/bpf: missing headers test_lwt_seg6local

Previous patch "selftests/bpf: test for seg6local End.BPF action" lacks
some UAPI headers in tools/.

clang -I. -I./include/uapi -I../../../include/uapi -idirafter
/usr/local/include -idirafter
/data/users/yhs/work/llvm/build/install/lib/clang/7.0.0/include
-idirafter /usr/include -Wno-compare-distinct-pointer-types \
         -O2 -target bpf -emit-llvm -c test_lwt_seg6local.c -o - |      \
llc -march=bpf -mcpu=generic  -filetype=obj -o
[...]/net-next/tools/testing/selftests/bpf/test_lwt_seg6local.o
test_lwt_seg6local.c:4:10: fatal error: 'linux/seg6_local.h' file not found
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
make: Leaving directory
`/data/users/yhs/work/net-next/tools/testing/selftests/bpf'

v2: moving the headers to tools/include/uapi/.

Reported-by: Y Song <ys114321@gmail.com>
Signed-off-by: Mathieu Xhonneux <m.xhonneux@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/include/uapi/linux/seg6.h [new file with mode: 0644]
tools/include/uapi/linux/seg6_local.h [new file with mode: 0644]