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 D554AA0562; Fri, 19 Mar 2021 15:59:04 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C142D140F5C; Fri, 19 Mar 2021 15:58:00 +0100 (CET) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by mails.dpdk.org (Postfix) with ESMTP id 78755140F46; Fri, 19 Mar 2021 15:57:56 +0100 (CET) Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 18F1B5C01A8; Fri, 19 Mar 2021 10:57:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Fri, 19 Mar 2021 10:57:56 -0400 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=jRGJ5IO3HXfXW xWebTk+y9HM5RJHqPz0hgkm9cHeM2U=; b=EcjGPgMd+HeaoOy3uiNbISvvjBWbJ +ktRnonBQA0lseHqUSDvJEDcNafC4e0oUtSZCgg1zKplpakLm18F+ljPPs/K/Ww1 95+j7rAosetlskvvWLREHkiI2V5XMcOG9GzcVGoRDeqvAxCIHLJm8+GLApuVoXGJ dXyBPBd7IKaiQsHphrc4x7oeB+9XDKJQV2NAM6IzM3n/QSpFZ2hByiBw1l0jLiu5 l71L0hnnYvVK3RhAdkEyTCCBgpnbpxTSSnbtVqyrWD9dJvqxzhjYebeAXgiWOQ4H cqHsrwZUSaXijo5kmKq5XroYVAjD7D2BBQZQs+Sc+icpEvuZXx/X52/jg== 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=jRGJ5IO3HXfXWxWebTk+y9HM5RJHqPz0hgkm9cHeM2U=; b=epBoLT2L VEKqcbTYbf9CDSEwM6DcDpJdPKCuTVd01X+4Fx+77TFkaOdsOS1AAnfzYv+5cn+c IcjNcO8gHtaUCCzKvCY+poQ+pmHYaTnoh3gb+QW4Z5O1T8afAq6kwfLBiNRUV6Jj u+tQzyZ0fO0QVxBCGSlHfrQ5a9Pam0KKLaoJeqGbfmLz3lC7XQ6u2NyUT+jQjOql q/6YVjz9jLpCgNawOLVYpBofDX52qaiFMFJrl1OHcV2XQvT43xBbj6X4a5louhaw Su4m8HlSSVMTz8D8BlthH2qpol0NxiuhvOCeGLDBIsCnvfTgMtGFJRxqnM3ihnZT Bqwz1VyhVAAHlg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudefkedgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepvdehgfeivdejgedtveehfefhteelfefgieevgfffveefjeegtdfg uedthedtgeevnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpeegnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl 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 07A8D24005A; Fri, 19 Mar 2021 10:57:54 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: ncopa@alpinelinux.org, stable@dpdk.org, Hemant Agrawal , Andrew Rybchenko , David Marchand , Sachin Saxena , Roy Pledge , Geoff Thorpe , Shreyansh Jain Date: Fri, 19 Mar 2021 15:57:22 +0100 Message-Id: <20210319145730.3555384-10-thomas@monjalon.net> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210319145730.3555384-1-thomas@monjalon.net> References: <20190313170657.16688-1-ncopa@alpinelinux.org> <20210319145730.3555384-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v7 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 Acked-by: Hemant Agrawal Acked-by: Andrew Rybchenko Acked-by: David Marchand --- 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