From: Alakesh Haloi <alakesh.haloi@gmail.com>
To: Shuah Khan <shuah@kernel.org>
Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] selftests: add missing include linux/sockios
Date: Fri, 24 May 2019 01:42:11 +0000 [thread overview]
Message-ID: <20190524014211.GA78399@ip-172-31-44-144.us-west-2.compute.internal> (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@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
WARNING: multiple messages have this Message-ID (diff)
From: alakesh.haloi at gmail.com (Alakesh Haloi)
Subject: [PATCH] selftests: add missing include linux/sockios
Date: Fri, 24 May 2019 01:42:11 +0000 [thread overview]
Message-ID: <20190524014211.GA78399@ip-172-31-44-144.us-west-2.compute.internal> (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
WARNING: multiple messages have this Message-ID (diff)
From: alakesh.haloi@gmail.com (Alakesh Haloi)
Subject: [PATCH] selftests: add missing include linux/sockios
Date: Fri, 24 May 2019 01:42:11 +0000 [thread overview]
Message-ID: <20190524014211.GA78399@ip-172-31-44-144.us-west-2.compute.internal> (raw)
Message-ID: <20190524014211.TOYMikrNDjnsjq7fel3uHJvHY4SSz1v68K63bktcoso@z> (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
next reply other threads:[~2019-05-24 1:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-24 1:42 Alakesh Haloi [this message]
2019-05-24 1:42 ` [PATCH] selftests: add missing include linux/sockios Alakesh Haloi
2019-05-24 1:42 ` alakesh.haloi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190524014211.GA78399@ip-172-31-44-144.us-west-2.compute.internal \
--to=alakesh.haloi@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.