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 9395AA034F; Fri, 7 May 2021 14:20:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 173424013F; Fri, 7 May 2021 14:20:19 +0200 (CEST) Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com [64.147.123.19]) by mails.dpdk.org (Postfix) with ESMTP id B481440040 for ; Fri, 7 May 2021 14:20:17 +0200 (CEST) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 4748911DB; Fri, 7 May 2021 08:20:16 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Fri, 07 May 2021 08:20:16 -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-type:content-transfer-encoding; s=fm1; bh= S2l/9jgbUsUwIO/UktR22XFtKSPmbL/Gt2yePYnDP5k=; b=POOQVw128SljjTOa i1hnNoOX9lMILwnlfbJ08E9dSB9mMgJ+5Nzb7/Hr5ajvEaxjTvpvJDCqYeiLll9B NiCw4CYq42tv/r/+JpunaqVuk8zTHqCkCjm9kuIc+yvQyUe1/DhvQtcyjSBOmhBC ajO4+0zSzkdjik0FlqBJo9Z8KHwwkYZz5Fp3O1vinqQ1HvJG2HciRHpSgmpiZRwb gfB8NJPmIGgjuuLoJLL7KweNp4ccohPuhKK+zUv5gLnbshjCyh9AjyX4ScZPytKJ 2TABD9C87coZ3MleagAc2a+KZvHcDYEvW5IdZS65QR4iOPnQ8hYrNWVoi6GL31b9 i7mGeA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :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=S2l/9jgbUsUwIO/UktR22XFtKSPmbL/Gt2yePYnDP 5k=; b=RPLJdPOwhBlf2xrk8xC9LgKKsDHN4lcI62MS1liWGw/bEdV2e+FYEtxNV VK5HrcNwmJ5cUIrj2NwRVjfFxLH9FpzLLwBV5xsemOIcuykY1CbzmUjKJYI8fF4T Sn63SGo5b8YMq16TaT9y5g0DvyLj8j4Ir0dUkLKAcaZelTD2X4gFpwP+J85DARFb /PeEip0wLDxxex03E66XM9Y9lFqNNaxatuikQA9h3RHhYsOHBvJDrjeCGKBehwYI 0iA4kiTHfPcFtTuruVqejQqFbqPMGrdtaW4iZUvfDUs9kGmYtoJM493icqopbgb7 v7pd62ETBY2gbUL+FxbdzW0ZAEsiw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdegvddghedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkffojghfgggtgfesthekredtredtjeenucfhrhhomhepvfhhohhm rghsucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenuc ggtffrrghtthgvrhhnpeevuddtveeuveejkeevheehveffueegjedukeffledtleekieef geduhedvgeejhfenucfkphepjeejrddvtdehrdegtddrvddunecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhho nhdrnhgvth X-ME-Proxy: Received: from xps.monjalon.net (21.40.205.77.rev.sfr.net [77.205.40.21]) by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 7 May 2021 08:20:13 -0400 (EDT) From: Thomas Monjalon To: dev@dpdk.org Cc: ferruh.yigit@intel.com, David Marchand , "Min Hu (Connor)" , Yisen Zhuang , Lijun Ou Date: Fri, 7 May 2021 14:20:04 +0200 Message-Id: <20210507122004.683239-1-thomas@monjalon.net> X-Mailer: git-send-email 2.31.1 In-Reply-To: <5c39e9bc-24ae-0c78-6860-cf5cef10ce58@intel.com> References: <5c39e9bc-24ae-0c78-6860-cf5cef10ce58@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] net/hns3: fix debug build 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" The variable "dev" is not used in hns3_get_tx_prep_needed() in the case of RTE_LIBRTE_ETHDEV_DEBUG: drivers/net/hns3/hns3_rxtx.c:4213:45: error: unused parameter ‘dev’ Reported-by: David Marchand Signed-off-by: Thomas Monjalon --- drivers/net/hns3/hns3_rxtx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c index a76b141891..1d7a769768 100644 --- a/drivers/net/hns3/hns3_rxtx.c +++ b/drivers/net/hns3/hns3_rxtx.c @@ -4213,6 +4213,7 @@ static bool hns3_get_tx_prep_needed(struct rte_eth_dev *dev) { #ifdef RTE_LIBRTE_ETHDEV_DEBUG + RTE_SET_USED(dev); /* always perform tx_prepare when debug */ return true; #else -- 2.31.1