* [PATCH] selftests: add missing include linux/sockios
@ 2019-05-24 1:42 ` alakesh.haloi
0 siblings, 0 replies; 3+ messages in thread
From: Alakesh Haloi @ 2019-05-24 1:42 UTC (permalink / raw)
To: Shuah Khan; +Cc: linux-kselftest, linux-kernel
Including <linux/sockios.h> fixes the following compiler warning
timestamping.c: In function ‘printpacket’:
timestamping.c:261:19: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGSTAMPNS’?
if (ioctl(sock, SIOCGSTAMP, &tv))
^~~~~~~~~~
SIOCGSTAMPNS
Signed-off-by: Alakesh Haloi <alakesh.haloi@gmail.com>
---
tools/testing/selftests/networking/timestamping/timestamping.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/networking/timestamping/timestamping.c b/tools/testing/selftests/networking/timestamping/timestamping.c
index 5cdfd743447b..62f03bcc9432 100644
--- a/tools/testing/selftests/networking/timestamping/timestamping.c
+++ b/tools/testing/selftests/networking/timestamping/timestamping.c
@@ -44,6 +44,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
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] selftests: add missing include linux/sockios
@ 2019-05-24 1:42 ` alakesh.haloi
0 siblings, 0 replies; 3+ messages in thread
From: alakesh.haloi @ 2019-05-24 1:42 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1023 bytes --]
Including <linux/sockios.h> fixes the following compiler warning
timestamping.c: In function ‘printpacket’:
timestamping.c:261:19: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGSTAMPNS’?
if (ioctl(sock, SIOCGSTAMP, &tv))
^~~~~~~~~~
SIOCGSTAMPNS
Signed-off-by: Alakesh Haloi <alakesh.haloi at gmail.com>
---
tools/testing/selftests/networking/timestamping/timestamping.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/networking/timestamping/timestamping.c b/tools/testing/selftests/networking/timestamping/timestamping.c
index 5cdfd743447b..62f03bcc9432 100644
--- a/tools/testing/selftests/networking/timestamping/timestamping.c
+++ b/tools/testing/selftests/networking/timestamping/timestamping.c
@@ -44,6 +44,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
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] selftests: add missing include linux/sockios
@ 2019-05-24 1:42 ` alakesh.haloi
0 siblings, 0 replies; 3+ messages in thread
From: Alakesh Haloi @ 2019-05-24 1:42 UTC (permalink / raw)
Including <linux/sockios.h> fixes the following compiler warning
timestamping.c: In function ‘printpacket’:
timestamping.c:261:19: error: ‘SIOCGSTAMP’ undeclared (first use in this function); did you mean ‘SIOCGSTAMPNS’?
if (ioctl(sock, SIOCGSTAMP, &tv))
^~~~~~~~~~
SIOCGSTAMPNS
Signed-off-by: Alakesh Haloi <alakesh.haloi at gmail.com>
---
tools/testing/selftests/networking/timestamping/timestamping.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/networking/timestamping/timestamping.c b/tools/testing/selftests/networking/timestamping/timestamping.c
index 5cdfd743447b..62f03bcc9432 100644
--- a/tools/testing/selftests/networking/timestamping/timestamping.c
+++ b/tools/testing/selftests/networking/timestamping/timestamping.c
@@ -44,6 +44,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
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-24 1:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-24 1:42 [PATCH] selftests: add missing include linux/sockios Alakesh Haloi
2019-05-24 1:42 ` Alakesh Haloi
2019-05-24 1:42 ` alakesh.haloi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.