From: Thomas Monjalon Date: Fri, 7 May 2021 12:14:13 +0000 (+0200) Subject: net/hns3: fix debug build X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0d655820e048f702894397973f42de30fff73f76;p=dpdk.git net/hns3: fix debug build 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 --- 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