]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selftests: bpf: fix compiler warning in flow_dissector test
authorAlakesh Haloi <alakesh.haloi@gmail.com>
Tue, 28 May 2019 19:02:18 +0000 (19:02 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 29 May 2019 13:23:40 +0000 (15:23 +0200)
commit5fac1718e706d94a7078addee9075cfaea00ca8c
treef15d7799c893a9a8a02091fe50fe4b625af1844b
parent10b3c44131982e0aa889016890ada36a514a58ca
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>
tools/testing/selftests/bpf/prog_tests/flow_dissector.c