summaryrefslogtreecommitdiff
path: root/tools/testing/vsock/vsock_diag_test.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2019-12-18 21:06:58 +0300
committerDavid S. Miller <davem@davemloft.net>2019-12-21 08:09:20 +0300
commit43985468df6757bc079ca0be44edf4da997891e0 (patch)
tree34973c7c9c29043f1c6c8b0d1ec5818c3661aaca /tools/testing/vsock/vsock_diag_test.c
parenta706a0422322e6235d689f53274009a743c8d719 (diff)
downloadlinux-43985468df6757bc079ca0be44edf4da997891e0.tar.xz
VSOCK: fix header include in vsock_diag_test
The vsock_diag_test program directly included ../../../include/uapi/ headers from the source tree. Tests are supposed to use the usr/include/linux/ headers that have been prepared with make headers_install instead. Suggested-by: David S. Miller <davem@davemloft.net> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/vsock/vsock_diag_test.c')
-rw-r--r--tools/testing/vsock/vsock_diag_test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/testing/vsock/vsock_diag_test.c b/tools/testing/vsock/vsock_diag_test.c
index c481101364a4..fc391e041954 100644
--- a/tools/testing/vsock/vsock_diag_test.c
+++ b/tools/testing/vsock/vsock_diag_test.c
@@ -21,12 +21,11 @@
#include <linux/list.h>
#include <linux/net.h>
#include <linux/netlink.h>
+#include <linux/vm_sockets.h>
#include <linux/sock_diag.h>
+#include <linux/vm_sockets_diag.h>
#include <netinet/tcp.h>
-#include "../../../include/uapi/linux/vm_sockets.h"
-#include "../../../include/uapi/linux/vm_sockets_diag.h"
-
#include "timeout.h"
#include "control.h"