From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <stable-bounces@dpdk.org>
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
	by inbox.dpdk.org (Postfix) with ESMTP id 37EAAA034D
	for <public@inbox.dpdk.org>; Fri, 25 Feb 2022 16:27:05 +0100 (CET)
Received: from [217.70.189.124] (localhost [127.0.0.1])
	by mails.dpdk.org (Postfix) with ESMTP id 2C1F9411ED;
	Fri, 25 Feb 2022 16:27:05 +0100 (CET)
Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com
 [66.111.4.29]) by mails.dpdk.org (Postfix) with ESMTP id E4F754068B;
 Fri, 25 Feb 2022 16:27:02 +0100 (CET)
Received: from compute3.internal (compute3.nyi.internal [10.202.2.43])
 by mailout.nyi.internal (Postfix) with ESMTP id 5FA0A5C020C;
 Fri, 25 Feb 2022 10:27:02 -0500 (EST)
Received: from mailfrontend2 ([10.202.2.163])
 by compute3.internal (MEProxy); Fri, 25 Feb 2022 10:27:02 -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
 :message-id:mime-version:reply-to:sender:subject:subject:to:to;
 s=fm3; bh=BlG10K+09kaVjqA2GTwbch4bLXbBfrLRMAQKLWj0kZs=; b=f86DA
 Vd+d2IDPRwhs5rlTLMGN/UW4G6dqwg/abdtAlFtrM85euc1QmClyshDKfHTsQKBP
 HE5aGZ6zfFPOhgF8sHx+gsUNW47FzaoPKEEdrbtJ9LoQJ6bXK8EZEMnY9oQ6DkBZ
 TWuB4W01rFkEZ779T/cb/nYu11xpg4dI7A+1cfLNilNoBgjA9z1D8rk5XnBYFFGE
 hL6+IY08oCr4aFvKKWRRUE4zerhIRraHc4B82ZRhpqj0IEmFwZcTHMlVuQbPoEcr
 xQWaElyjsIzKCJ8HCakctwspf6upS3ObmtW3bXiG3jLxiutFEgqN1VUC4gC/tpPK
 QLtecSPFuI4I0n8Bg==
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:message-id:mime-version: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=BlG10K+09kaVjqA2GTwbch4bLXbBf
 rLRMAQKLWj0kZs=; b=XnWvyxwZUowC5fXk2MGbmSJxtSzOs7EQ+6vh1TbTkh7nA
 vXCZQPQEAckZ/JkxFButL6rJ7lWEFKFL/Bg9BYv/kkx+1Kelcp9NtbeLuPRod58+
 XoYbm9blhFKAUBnPbHnrvkOebRFgvE1eqqeSegGC6Gisz4sK7ieNuzi2eJVmVtcI
 VGPmPXC0bCLx+wf8QyHLnN7wV0NkBVtgyj76/PoTSku5EGljCtUAHhKmGlt26mX0
 6ndF9L+wyG4r5oB8TMezVP5c6ZBHuxg4bhtzkWwRlFzHQMsKtQvpuZpaWaDatRIo
 Lrh1bV12LrBwSwDxGLX07dZqIp/OcjHpAxuDlPttQ==
X-ME-Sender: <xms:RfUYYhWrtnrCkJXFpCgNx1TkPFPfoAKtceAvGqjVMMY4t24Nr0CpvQ>
 <xme:RfUYYhnSzZLQpC7W7aZ7M7BlAIHm9RfZmf0z_b3IFgpzdUyGM61523EagXhfSUVXC
 jcX5AJ-YaFjxhXuPA>
X-ME-Received: <xmr:RfUYYtZC0cDMvN0sxFRBp8c78mQ1NrwO0ZFdEShi7dlDLHJpy3fq8JmAd-MnBDFPLKL1uT60sJb_XhcN4qec2_t7HHnHE5E>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrleeggdejjecutefuodetggdotefrodftvf
 curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu
 uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc
 fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepvfhhohhmrghsucfo
 ohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucggtffrrg
 htthgvrhhnpedvledvudehvdduudevuedvveehgeduleegiefgjeehudehtddtgeduffej
 iefhgfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe
 hthhhomhgrshesmhhonhhjrghlohhnrdhnvght
X-ME-Proxy: <xmx:RfUYYkUlUZHPGmXbm9ULgiLjayAuw7e2gJEMNJDP6bahSK6wQ8tE7A>
 <xmx:RfUYYrmg6DTYLRZZbEllGQ2szf_gDz34Q-Wt303B8aKxLpItNj81XA>
 <xmx:RfUYYhdB5aCvCgpJHCn6goLuc_1EuRxROTTR_MBMTAXVbi5kD17-SQ>
 <xmx:RvUYYkAaLjVomDkwlEqGHFSacP2E-y2pS-0fRcmxMa0bkSGt-5vDGw>
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 25 Feb 2022 10:27:00 -0500 (EST)
From: Thomas Monjalon <thomas@monjalon.net>
To: dev@dpdk.org
Cc: stable@dpdk.org, Xiaoyun Li <xiaoyun.li@intel.com>,
 Aman Singh <aman.deep.singh@intel.com>,
 Yuying Zhang <yuying.zhang@intel.com>,
 Ajit Khaparde <ajit.khaparde@broadcom.com>
Subject: [PATCH] app/testpmd: fix build without drivers
Date: Fri, 25 Feb 2022 16:26:53 +0100
Message-Id: <20220225152653.72437-1-thomas@monjalon.net>
X-Mailer: git-send-email 2.34.1
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-BeenThere: stable@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: patches for DPDK stable branches <stable.dpdk.org>
List-Unsubscribe: <https://mails.dpdk.org/options/stable>,
 <mailto:stable-request@dpdk.org?subject=unsubscribe>
List-Archive: <http://mails.dpdk.org/archives/stable/>
List-Post: <mailto:stable@dpdk.org>
List-Help: <mailto:stable-request@dpdk.org?subject=help>
List-Subscribe: <https://mails.dpdk.org/listinfo/stable>,
 <mailto:stable-request@dpdk.org?subject=subscribe>
Errors-To: stable-bounces@dpdk.org

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 <thomas@monjalon.net>
---
 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);
 
 #ifdef RTE_NET_IXGBE
 	if (ret == -ENOTSUP)
-- 
2.34.1