summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAlakesh Haloi <alakesh.haloi@gmail.com>2019-05-28 19:02:18 +0000
committerDaniel Borkmann <daniel@iogearbox.net>2019-05-29 15:23:40 +0200
commit5fac1718e706d94a7078addee9075cfaea00ca8c (patch)
treef15d7799c893a9a8a02091fe50fe4b625af1844b /tools
parent10b3c44131982e0aa889016890ada36a514a58ca (diff)
downloadlinux-5fac1718e706d94a7078addee9075cfaea00ca8c.tar.gz
linux-5fac1718e706d94a7078addee9075cfaea00ca8c.tar.bz2
linux-5fac1718e706d94a7078addee9075cfaea00ca8c.zip
selftests: bpf: fix compiler warning in flow_dissector test
Add missing header file following compiler warning: prog_tests/flow_dissector.c: In function ‘tx_tap’: prog_tests/flow_dissector.c:175:9: warning: implicit declaration of function ‘writev’; did you mean ‘write’? [-Wimplicit-function-declaration] return writev(fd, iov, ARRAY_SIZE(iov)); ^~~~~~ write Fixes: 0905beec9f52 ("selftests/bpf: run flow dissector tests in skb-less mode") Signed-off-by: Alakesh Haloi <alakesh.haloi@gmail.com> Acked-by: Song Liu <songliubraving@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/selftests/bpf/prog_tests/flow_dissector.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
index fbd1d88a6095..c938283ac232 100644
--- a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
+++ b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
@@ -3,6 +3,7 @@
#include <error.h>
#include <linux/if.h>
#include <linux/if_tun.h>
+#include <sys/uio.h>
#define CHECK_FLOW_KEYS(desc, got, expected) \
CHECK_ATTR(memcmp(&got, &expected, sizeof(got)) != 0, \