[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1612385537-9076-1-git-send-email-vfedorenko@novek.ru>
Date: Wed, 3 Feb 2021 23:52:17 +0300
From: Vadim Fedorenko <vfedorenko@...ek.ru>
To: Jakub Kicinski <kuba@...nel.org>, Jian Yang <jianyang@...gle.com>
Cc: Vadim Fedorenko <vfedorenko@...ek.ru>, netdev@...r.kernel.org
Subject: [net] selftests: txtimestamp: fix compilation issue
PACKET_TX_TIMESTAMP is defined in if_packet.h but it is not included in
test. But we cannot include it because we have definitions of struct and
including leads to redefinition error. So define PACKET_TX_TIMESTAMP too.
Fixes: 5ef5c90e3cb3 (selftests: move timestamping selftests to net folder)
Signed-off-by: Vadim Fedorenko <vfedorenko@...ek.ru>
---
tools/testing/selftests/net/txtimestamp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/net/txtimestamp.c b/tools/testing/selftests/net/txtimestamp.c
index 490a8cc..2010f47 100644
--- a/tools/testing/selftests/net/txtimestamp.c
+++ b/tools/testing/selftests/net/txtimestamp.c
@@ -53,6 +53,7 @@
#define NSEC_PER_USEC 1000L
#define USEC_PER_SEC 1000000L
#define NSEC_PER_SEC 1000000000LL
+#define PACKET_TX_TIMESTAMP 16
/* command line parameters */
static int cfg_proto = SOCK_STREAM;
--
1.8.3.1
Powered by blists - more mailing lists