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 39017A034D for ; Fri, 25 Feb 2022 17:44:34 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 29D2841156; Fri, 25 Feb 2022 17:44:34 +0100 (CET) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by mails.dpdk.org (Postfix) with ESMTP id 774B94068B; Fri, 25 Feb 2022 17:44:32 +0100 (CET) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id DC3C45C01F9; Fri, 25 Feb 2022 11:44:31 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 25 Feb 2022 11:44:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= cc:cc:content-transfer-encoding:content-type: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=9Coh3DRLik5m9f kv372niNk9Y9GUHXF2HwtI+UWbWy0=; b=KB/3hmK1V3oEEBcIBJnKzXlupwmAXx X3KfQ8OnkSntEN3aeRonJ00vDecAxeB5Y2hjt92YOQ3PPNn7zF7WoNYZfSEu211S p3NCxEwZSsAEEI4qDCMQBQ9DXVIs50h1sQrRVWpvZvi9LWf9FPtd2qHO9NyYI9Mn ZwIxnG2+/coDj5dbgwjQVq/tYsAebZMgPdwyZuXwLntkN+8HVQvd1kEs8XDOumzT uhFgq2/08pqx5p2YABpMk7EFVtKd+O/wgAEqXK4P4Q9JSqWBNjlDkfUGlXvY6UOq ZBojCg6MJe9sif+ib4gnpRCrSuWDbXP+Bj1MvxzeJ4LUGl8MSJQDwzyA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type: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=9Coh3DRLik5m9fkv372niNk9Y9GUHXF2HwtI+UWbW y0=; b=K1AxlLDdCLQ/pXj4u7XhWl4vrxTJ3NCnt0zJPaqI+5EIXfEZ5hKgOOk0N wJ2P+PJUjB8Rvd7dxJJWN4bf93y+Yj7yBX6w9rtwvqf7dAb8mM6r4QQrmb8CnR0l X2LmwSx3eDw9OBau6tCjaW+mmZkeUnQNkNTJRlXnkYm9gAN4TpTdKDailrWGdoYr WGKdYDB9IndFC4qugDelCH8EGTIXAxYUiwrJJJ9jSWT5j/VkFpQTbsbi4tVbu3vu E9cg/Vmqw0zbKDiyhO2PkcYJk36D5RUGQ6PPixCB0NA6x9E4hkTn7TUFVHMM76FW 8GHD6BJIAWYknc9+5jTVD1pkwzvKA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrleeggdelvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtf frrghtthgvrhhnpedugefgvdefudfftdefgeelgffhueekgfffhfeujedtteeutdejueei iedvffegheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpehthhhomhgrshesmhhonhhjrghlohhnrdhnvght X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 25 Feb 2022 11:44:30 -0500 (EST) From: Thomas Monjalon To: Bruce Richardson Cc: dev@dpdk.org, stable@dpdk.org, Xiaoyun Li , Aman Singh , Yuying Zhang , Ajit Khaparde Subject: Re: [PATCH] app/testpmd: fix build without drivers Date: Fri, 25 Feb 2022 17:44:28 +0100 Message-ID: <2573646.X9hSmTKtgW@thomas> In-Reply-To: References: <20220225152653.72437-1-thomas@monjalon.net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org 25/02/2022 16:50, Bruce Richardson: > On Fri, Feb 25, 2022 at 04:26:53PM +0100, Thomas Monjalon wrote: > > When ixgbe and bnxt are disabled, compilation was failing: > > > > app/test-pmd/cmdline.c:9396:11: error: > > variable 'vf_rxmode' set but not used > > > > Fixes: 4cfe399f6550 ("net/bnxt: support to set VF rxmode") > > Cc: stable@dpdk.org > > > > Signed-off-by: Thomas Monjalon > > --- > > app/test-pmd/cmdline.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c > > index b4ba8da2b0..7ab0575e64 100644 > > --- a/app/test-pmd/cmdline.c > > +++ b/app/test-pmd/cmdline.c > > @@ -9409,6 +9409,7 @@ cmd_set_vf_rxmode_parsed(void *parsed_result, > > } > > > > RTE_SET_USED(is_on); > > + RTE_SET_USED(vf_rxmode); > > > Checking the code, I see the issue and the fix looks correct. However, > doing some basic builds disabling the relevant drivers, and all drivers, in > fact, I fail to reproduce the actual error message. Does this error only > occur at lower optimization levels, or only using clang or similar? I don't remember, probably clang only.