From 0d655820e048f702894397973f42de30fff73f76 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Fri, 7 May 2021 14:14:13 +0200 Subject: [PATCH] net/hns3: fix debug build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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’ Fixes: d7ec2c076579 ("net/hns3: select Tx prepare based on Tx offload") Cc: stable@dpdk.org Reported-by: David Marchand Signed-off-by: Thomas Monjalon Acked-by: David Marchand --- 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.20.1