From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 728E9A00C3; Tue, 1 Feb 2022 10:53:52 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E9A6E40691; Tue, 1 Feb 2022 10:53:51 +0100 (CET) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by mails.dpdk.org (Postfix) with ESMTP id 5AD9740685 for ; Tue, 1 Feb 2022 10:53:50 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 0310E5C0237; Tue, 1 Feb 2022 04:53:50 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 01 Feb 2022 04:53:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; bh=GpVDNlpTi8HMAQuf7HYjWYhaFFXi8o 8vE7TS+d1GwQk=; b=Rc44UfilwGf9OkvbTPwgUQB84mJDZm2DrJuuLlFkAzJLZX cWwdMYmqCwTTFcjLq2WArbEl6Q2dzxM8/pSXGM2roh4sVoxZm/6AhshXKneQyHEA 827fXmlNxJmszF8j+wvrw7KHtvcXIq5S2K0zEi/PlGGD5wrJCZgfqpPj/v4TZBe+ kxxGgNlQpBhxy9iDpKOIjPrufHZ5roAbuyNO4kA4CIpVYDfug27ZMkt1sDiY5wEA jLfrYSpzjr5hk4Wgt2SIxSmbZVy2ncVF/7GoL4yTHgmSMbg6VviyU/41TIvBgOOS CCYVEBrhfsF2/ukBL3adXRbamkgslFoAbzpZj+EQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=GpVDNl pTi8HMAQuf7HYjWYhaFFXi8o8vE7TS+d1GwQk=; b=c2c/VdHSh3KFj09xijwts5 zG+MJiVcSmY2IadnUGqc5gOMBPYOygyZnU2RbK7fmquJAtb7vwaKjB0kFOOXKU32 8VrZ96E+ZRMrqmX9CXgZsLmLBdDg5Z6rXtYmu5eWn1HVKZ/OyzZFJajpkqPMk3D4 PZlPii84oIv7ODR6g0aj2bIyXzFJ2V7Xt8qOdmC4v0PkYCw8AFNnkI9snytr7Aus Q713MbI6t3iwDzmmCYQAuScRjAbNWlEq/dBeIpTfTmvb1nGJxMDCSHGs7sek8mUq 4BZlTZMhNeukiycIqHF8pNMoi2YPNms7fb9eI3AHB7+49+ld1DvEMKYOfhbrIM5w == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgeefgddtlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpedvhefgiedvjeegtdevheefhfetleefgfeivefgffevfeejgedtgfeu tdehtdegveenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 1 Feb 2022 04:53:48 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: jun.yang@nxp.com, nipun.gupta@nxp.com, hemant.agrawal@nxp.com, David Marchand , Sachin Saxena Subject: [PATCH] net/dpaa2: fix build with musl Date: Tue, 1 Feb 2022 10:53:31 +0100 Message-Id: <20220201095332.834143-1-thomas@monjalon.net> X-Mailer: git-send-email 2.34.1 In-Reply-To: <6348031.G0QQBjFxQf@thomas> References: <6348031.G0QQBjFxQf@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org PAGE_SIZE is already defined in musl libc: drivers/net/dpaa2/dpaa2_recycle.c:35: error: "PAGE_SIZE" redefined /usr/include/limits.h:97: note: this is the location of the previous definition 97 | #define PAGE_SIZE PAGESIZE Fixes: f023d059769f ("net/dpaa2: support recycle loopback port") Reported-by: David Marchand Signed-off-by: Thomas Monjalon --- drivers/net/dpaa2/dpaa2_recycle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_recycle.c b/drivers/net/dpaa2/dpaa2_recycle.c index c5e9e9721d..336506dc0d 100644 --- a/drivers/net/dpaa2/dpaa2_recycle.c +++ b/drivers/net/dpaa2/dpaa2_recycle.c @@ -32,7 +32,9 @@ #include #include +#ifndef PAGE_SIZE #define PAGE_SIZE (sysconf(_SC_PAGESIZE)) +#endif #define PAGE_MASK (~(PAGE_SIZE - 1)) #define LSX_SERDES_LAN_NB 8 -- 2.34.1