From patchwork Wed Feb 3 20:52:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Fedorenko X-Patchwork-Id: 12065313 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C14F5C433E0 for ; Wed, 3 Feb 2021 20:53:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7996C64F72 for ; Wed, 3 Feb 2021 20:53:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232754AbhBCUxh (ORCPT ); Wed, 3 Feb 2021 15:53:37 -0500 Received: from novek.ru ([213.148.174.62]:40822 "EHLO novek.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232784AbhBCUxK (ORCPT ); Wed, 3 Feb 2021 15:53:10 -0500 Received: from nat1.ooonet.ru (gw.zelenaya.net [91.207.137.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by novek.ru (Postfix) with ESMTPSA id 04B2B5033A1; Wed, 3 Feb 2021 23:52:21 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 novek.ru 04B2B5033A1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=novek.ru; s=mail; t=1612385543; bh=uXKFXjvX9r3qzdapAHZfHg2GnpzDiM1kwQ6y/3b08z8=; h=From:To:Cc:Subject:Date:From; b=T68YVtrK3a3SmIJBMi20/G21IpDKT4xCcARFSeUa44eUAy+OsoyNawti2SubrCAQJ taXIXzVvw0lxGW78i0nJSePwm7BDAt2IPMGSxTcoDS2cwW7WsoRzcmkr5nEg524E/E ybWdXy1mgV/euYkiHADQVDPLdaa5nmotsW5uvHrs= From: Vadim Fedorenko To: Jakub Kicinski , Jian Yang Cc: Vadim Fedorenko , netdev@vger.kernel.org Subject: [net] selftests: txtimestamp: fix compilation issue Date: Wed, 3 Feb 2021 23:52:17 +0300 Message-Id: <1612385537-9076-1-git-send-email-vfedorenko@novek.ru> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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 --- 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;