diff options
| author | Alakesh Haloi <[email protected]> | 2019-05-28 19:02:18 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2019-05-29 13:23:40 +0000 |
| commit | 5fac1718e706d94a7078addee9075cfaea00ca8c (patch) | |
| tree | f15d7799c893a9a8a02091fe50fe4b625af1844b | |
| parent | Merge branch 'bpf-subreg-tests' (diff) | |
| download | kernel-5fac1718e706d94a7078addee9075cfaea00ca8c.tar.gz kernel-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 <[email protected]>
Acked-by: Song Liu <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
| -rw-r--r-- | tools/testing/selftests/bpf/prog_tests/flow_dissector.c | 1 |
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, \ |
