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 257FCA034F; Thu, 25 Feb 2021 19:24:32 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 69DF6160894; Thu, 25 Feb 2021 19:23:46 +0100 (CET) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by mails.dpdk.org (Postfix) with ESMTP id 255AB160803; Thu, 25 Feb 2021 19:23:44 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id C14C25C00C5; Thu, 25 Feb 2021 13:23:43 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Thu, 25 Feb 2021 13:23:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm3; bh=uKNtCLaRl165t 41Zw8dd6Y80pynR5lRv71HYgNtzFz4=; b=Qx+6Ddg9DkaTBfy7Ode3cLHPzYLT5 LPAN88ppGv89ur+Qcr70v9jjRyvx30SA+Of5UrvNAV0AcP3fH6WtFzs7unE8wtok 3yUIv5HpI+wQQlVE/LibjdIhiBmJUOhPN/PwmKK43sPJulxs1AjNXSSsee4Zn8Ab DKBeObO3YOwmNh7PI0ZfpS+Lb6Cdgb3T3lTCCwJmK458t4JZBN2Z+3Wk+xDCig3S pNc5hPN6pDGDLyR3n6ZF83MOwJ21DZFCWZKQbZnbhOoDMX8gzPdiyk5UfOnMkjPd dmVF+aSs83wbUHTcAYHxTK4rNFh02JrcFHb1IGqPTIHIOqa/9SXiIG1rg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=uKNtCLaRl165t41Zw8dd6Y80pynR5lRv71HYgNtzFz4=; b=eInPd0Mq pKhAUVKGeHwmdN4yN4sychKUeFWm3B1zgEwrkwrl6C4qYZPOW+sSxXT0/XEiatJ8 l35GvNme9pE1UfOUlkbGIR7HbDBpQgtEiSn7Wyr07qllbUCt5JSZrX55+By/2KDI x/st2/I0aCDWy+tMI9uhmkVdTVAPBb5zFaTVsfWZTvLKnmI7xF6HM5xTAifraIH0 kFKiNwn71NnFzntErHzWlDfOEvh4LgDYbhXLH4Qz2P4TNKKtt89CsdzSQSv3twZf EiXbg7NheCMmKg2fM3LS44jRU2LP37ztrKE+aNjWnX3LrPFZadzm5aFkhx9nXVYq SsXRwztE2+RARA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrkeelgdduudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpeeinecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id D964E240054; Thu, 25 Feb 2021 13:23:42 -0500 (EST) From: Thomas Monjalon To: dev@dpdk.org Cc: ncopa@alpinelinux.org, stable@dpdk.org, Hemant Agrawal , Sachin Saxena , Shreyansh Jain , Roy Pledge , Geoff Thorpe Date: Thu, 25 Feb 2021 19:22:42 +0100 Message-Id: <20210225182250.1149592-10-thomas@monjalon.net> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210225182250.1149592-1-thomas@monjalon.net> References: <20190313170657.16688-1-ncopa@alpinelinux.org> <20210225182250.1149592-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v5 09/17] bus/dpaa: fix 64-bit arch detection 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 Sender: "dev" From: Natanael Copa There is no standard saying that __WORDSIZE should be be defined or in what include it should be defined. Use RTE_ARCH_64 instead. This solves a warning when building with musl libc: warning: "__WORDSIZE" is not defined, evaluates to 0 [-Wundef] Fixes: 847ee3bd0d1f ("bus/dpaa: support FMAN frame queue lookup") Cc: stable@dpdk.org Signed-off-by: Natanael Copa --- drivers/bus/dpaa/include/fsl_qman.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/dpaa/include/fsl_qman.h b/drivers/bus/dpaa/include/fsl_qman.h index 10212f0fd5..7ef2f3b2e3 100644 --- a/drivers/bus/dpaa/include/fsl_qman.h +++ b/drivers/bus/dpaa/include/fsl_qman.h @@ -16,7 +16,7 @@ extern "C" { #include /* FQ lookups (turn this on for 64bit user-space) */ -#if (__WORDSIZE == 64) +#ifdef RTE_ARCH_64 #define CONFIG_FSL_QMAN_FQ_LOOKUP /* if FQ lookups are supported, this controls the number of initialised, * s/w-consumed FQs that can be supported at any one time. -- 2.30.1