summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/networking/timestamping/timestamping.c
diff options
context:
space:
mode:
authorShuah Khan2019-06-28 00:39:35 +0200
committerShuah Khan2019-06-28 22:31:12 +0200
commit877d53c295498c16a1977e591b7fc2838f8d8daf (patch)
treed54ad4be60b2e1635e10bf5918323fdec8509007 /tools/testing/selftests/networking/timestamping/timestamping.c
parentselftests: dma-buf: Adding kernel config fragment CONFIG_UDMABUF=y (diff)
downloadkernel-qcow2-linux-877d53c295498c16a1977e591b7fc2838f8d8daf.tar.gz
kernel-qcow2-linux-877d53c295498c16a1977e591b7fc2838f8d8daf.tar.xz
kernel-qcow2-linux-877d53c295498c16a1977e591b7fc2838f8d8daf.zip
selftests: timestamping: Fix SIOCGSTAMP undeclared build failure
Add missing linux/sockios.h include to fix the following SIOCGSTAMP undeclared build error. In addition, remove the local defines for SIOCGSTAMPNS and SIOCSHWTSTAMP and pick them up from linux/sockios.h. timestamping.c:249:19: error: SIOCGSTAMP undeclared if (ioctl(sock, SIOCGSTAMP, &tv)) Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/networking/timestamping/timestamping.c')
-rw-r--r--tools/testing/selftests/networking/timestamping/timestamping.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/tools/testing/selftests/networking/timestamping/timestamping.c b/tools/testing/selftests/networking/timestamping/timestamping.c
index 0fbed67bf4f6..aca3491174a1 100644
--- a/tools/testing/selftests/networking/timestamping/timestamping.c
+++ b/tools/testing/selftests/networking/timestamping/timestamping.c
@@ -32,6 +32,7 @@
#include <asm/types.h>
#include <linux/net_tstamp.h>
#include <linux/errqueue.h>
+#include <linux/sockios.h>
#ifndef SO_TIMESTAMPING
# define SO_TIMESTAMPING 37
@@ -42,14 +43,6 @@
# define SO_TIMESTAMPNS 35
#endif
-#ifndef SIOCGSTAMPNS
-# define SIOCGSTAMPNS 0x8907
-#endif
-
-#ifndef SIOCSHWTSTAMP
-# define SIOCSHWTSTAMP 0x89b0
-#endif
-
static void usage(const char *error)
{
if (error)