From patchwork Tue Aug 22 09:59:48 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: 110629 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp5095092obb; Tue, 22 Aug 2017 03:06:04 -0700 (PDT) X-Received: by 10.200.56.129 with SMTP id f1mr114481qtc.73.1503396238477; Tue, 22 Aug 2017 03:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503396238; cv=none; d=google.com; s=arc-20160816; b=LZ4QmsqUeSbvW8fRLMI87L6bPSjQHlRl5oKJO8uaFTFpwwXrd7aAE7Eb/nWWCcvNgt PXIs0McBak8WCeNjnKcP5sjy1wXAes5mZbF+I4snOcKd6OiHka66NBU/FsCoctsGdT5f SBnybJSPAlJvnGw03dHaeYYze1jI5Y43qTZRIIhmDqfkQTm0M+2dceB8KeNTAUOgJAZY Pni9bnzQmmM8+KHXTF5bxpG3X6Jz82MFtF50fzM2rM0BVvnaJHJkWt0aRH73WOYcUci7 h2RgckCRxZOtFyjfG7UlhUQAP6KvRbLoFc0Aj4ttuJf2zsE1JRE1K1AyN9QiTUOz5Tl2 aOmw== 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=4vjVM5Mi455ZYm9fiydwviq6bJSfMhYE+rNRm1xvNqg=; b=s+J6oIf56m74ivqyogwPdyUYp1joJuLwQyvpT6vcUla9NS1v7cAn8zgOqAlc1qEwvh u3TskapxSyWzaaPSz9W2E9H4BEau6dk2SSaAH8rd2HqY4h4msx6ES4bGQDbHQsrKlWe+ uyq1pqO5Br8qws4u3gMJgdQ2X7dBmPSvzrZw8ZbQLjgNbmlbfkaUypWOFrWTkAlVOrBw GrI6cglMMR3K45DqLjOqSpD0uFzAudqt7Dl+LkRbtEySjtz1V6EUyGFHv8MobcOc+uPn a1Fvd6Jbi3X+FE6ogUc6wa8Gi930xPe7TA49gMcwlUoMHclMQLSvVL7h6s1w913tyYc/ JqAw== 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 g204si12926015qkb.337.2017.08.22.03.03.58; Tue, 22 Aug 2017 03:03:58 -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 1CB06636AA; Tue, 22 Aug 2017 10:03:58 +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, RCVD_IN_DNSWL_NONE,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 1D6E465BBD; Tue, 22 Aug 2017 10:00:44 +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 D2891644EA; Tue, 22 Aug 2017 10:00:24 +0000 (UTC) Received: from forward100j.mail.yandex.net (forward100j.mail.yandex.net [5.45.198.240]) by lists.linaro.org (Postfix) with ESMTPS id 8488E60C0B for ; Tue, 22 Aug 2017 10:00:18 +0000 (UTC) Received: from mxback3g.mail.yandex.net (mxback3g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:164]) by forward100j.mail.yandex.net (Yandex) with ESMTP id 281DF5D82814 for ; Tue, 22 Aug 2017 13:00:17 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback3g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id x9jUHuIH85-0GRa8j50; Tue, 22 Aug 2017 13:00:17 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Rlal5nTP8B-0GfqYWek; Tue, 22 Aug 2017 13:00:16 +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, 22 Aug 2017 12:59:48 +0300 Message-Id: <1503396009-8350-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503396009-8350-1-git-send-email-odpbot@yandex.ru> References: <1503396009-8350-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 127 Subject: [lng-odp] [PATCH v5 4/25] 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: aecb3c7a442b426761f1e6f43308a1e9ea709ef3 ** Merge commit sha: 86e036501e05c61e5570d0908af382a61c2d4e89 **/ 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 482af5b6..8f3c7e69 100644 --- a/platform/linux-generic/pktio/ethtool.c +++ b/platform/linux-generic/pktio/ethtool.c @@ -4,10 +4,12 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif #include #include #include -#include #include #include #include