From patchwork Tue Aug 15 09:59:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 110118 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp5472745qge; Tue, 15 Aug 2017 03:11:34 -0700 (PDT) X-Received: by 10.55.209.86 with SMTP id s83mr32867518qki.171.1502791894823; Tue, 15 Aug 2017 03:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502791894; cv=none; d=google.com; s=arc-20160816; b=we8UkY/unOH7KQ2bjOGmvJp926waso2+jfJ+3xHeCefMt+tO1QhPkYFTHl9jGJlz+Y UqmN5Hmwzi4OVujWpTFYg+zph9WWZchWmPEg8niAXHQlqX0qlrDJGIMCNUSz430uIJpZ X9Zmf8WFbvYjSgap7DtsBbnCIGOsBlfyPeepsbH/FyE37rIedDuyvBnHBzNzxSzz7DEZ E5o4ZDI4l+iDqjWGExx5mY9THrpWWNvfpYzo6zdKX3UKC/bdBN64L1+yGk5OYn07uODV 0lN6Uy5tdW1qAcpINTxUhbUBrUq1T+aCHCSfL2X6q9i54/YRqMRZZDQZ2O/Z9DP0dk5e Wj9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=DsuvuC5QB+NfWW1RuDyu2tqBJDafgNe+KQZPQYus4B8=; b=Wa/neawdDV4KYq/3l+A1fdi5O2uj0lkm/QuAVN9WF7ajHAQ9LfdoMhzt9MEx6v9Xlc 6SaaDA/oq4diKjVOR50rO/Bfs5x67vs2CNSAhn7I1nR3KWrt5gn+TWQkMStiNcDFnxgD CSL45xQsRQOTfyXQe6ejM6C6qtllmyhgfpMCqPIAC/esZ4zbuHlZngQI1qVIWlYToXXJ sLfh59gw6xA2ddxuPMdLl5+3I0xY2mhHd5mWMt12sPawxygP3kJJrvad4ZbL0xbs8d/3 ljgmC4nVywSrnRIIKkg740Nd3793DwYIbJU9QeaQlgfsdmu48RC3RwshCuTPeNs51lCV Q0Pg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id u27si8414749qte.536.2017.08.15.03.11.34; Tue, 15 Aug 2017 03:11:34 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 75C3165C83; Tue, 15 Aug 2017 10:11:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id BB6DC644BD; Tue, 15 Aug 2017 10:02:00 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 4845865C83; Tue, 15 Aug 2017 10:01:55 +0000 (UTC) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [77.88.28.107]) by lists.linaro.org (Postfix) with ESMTPS id 52B5C65BCB for ; Tue, 15 Aug 2017 10:00:33 +0000 (UTC) Received: from mxback19j.mail.yandex.net (mxback19j.mail.yandex.net [IPv6:2a02:6b8:0:1619::95]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 0FD0F1829F3 for ; Tue, 15 Aug 2017 13:00:32 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback19j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id T1RPj2oBpo-0VnSfDHE; Tue, 15 Aug 2017 13:00:31 +0300 Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id fa5mS4tQKd-0VjG5cwt; Tue, 15 Aug 2017 13:00:31 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Tue, 15 Aug 2017 12:59:57 +0300 Message-Id: <1502791206-2437-8-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502791206-2437-1-git-send-email-odpbot@yandex.ru> References: <1502791206-2437-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 127 Subject: [lng-odp] [PATCH v2 7/16] linux-gen: pktio: ethtool: don't include linux/if.h X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov net/if.h together with _USE_MISC (from _GNU_SOURCE) includes necessary definitions, so no point in including platform-specific linux/if.h. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 127 (lumag:improve-build) ** https://github.com/Linaro/odp/pull/127 ** Patch: https://github.com/Linaro/odp/pull/127.patch ** Base sha: 90d4ce1b3b25ca18446131906007571cc0ed0191 ** Merge commit sha: 3e7a44d8f4b7c90183d3bd3b57bc812f16de030f **/ platform/linux-generic/pktio/ethtool.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/pktio/ethtool.c b/platform/linux-generic/pktio/ethtool.c index 2f796745..72b8d759 100644 --- a/platform/linux-generic/pktio/ethtool.c +++ b/platform/linux-generic/pktio/ethtool.c @@ -8,10 +8,12 @@ #include "config.h" #endif +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif #include #include #include -#include #include #include #include