From 4f28d9a1a62cd3b5083e38117eb255431ad520ae Mon Sep 17 00:00:00 2001 From: Kalesh AP Date: Fri, 23 Apr 2021 10:52:26 +0530 Subject: [PATCH] net/bnxt: drop unused attribute Remove "__rte_unused" instances that are wrongly marked. Fixes: 6dc83230b43b ("net/bnxt: support port representor data path") Fixes: 1bf01f5135f8 ("net/bnxt: prevent device access when device is in reset") Cc: stable@dpdk.org Signed-off-by: Kalesh AP Reviewed-by: Somnath Kotur Reviewed-by: Ajit Khaparde --- drivers/net/bnxt/bnxt_reps.c | 4 ++-- drivers/net/bnxt/bnxt_stats.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/bnxt/bnxt_reps.c b/drivers/net/bnxt/bnxt_reps.c index b224a7d2c2..bdbad53b7d 100644 --- a/drivers/net/bnxt/bnxt_reps.c +++ b/drivers/net/bnxt/bnxt_reps.c @@ -104,7 +104,7 @@ bnxt_rep_rx_burst(void *rx_queue, static uint16_t bnxt_rep_tx_burst(void *tx_queue, struct rte_mbuf **tx_pkts, - __rte_unused uint16_t nb_pkts) + uint16_t nb_pkts) { struct bnxt_vf_rep_tx_queue *vfr_txq = tx_queue; struct bnxt_tx_queue *ptxq; @@ -548,7 +548,7 @@ int bnxt_rep_dev_info_get_op(struct rte_eth_dev *eth_dev, return 0; } -int bnxt_rep_dev_configure_op(__rte_unused struct rte_eth_dev *eth_dev) +int bnxt_rep_dev_configure_op(struct rte_eth_dev *eth_dev) { struct bnxt_representor *rep_bp = eth_dev->data->dev_private; diff --git a/drivers/net/bnxt/bnxt_stats.h b/drivers/net/bnxt/bnxt_stats.h index e9e5636926..1ca9b9c594 100644 --- a/drivers/net/bnxt/bnxt_stats.h +++ b/drivers/net/bnxt/bnxt_stats.h @@ -12,7 +12,7 @@ void bnxt_free_stats(struct bnxt *bp); int bnxt_stats_get_op(struct rte_eth_dev *eth_dev, struct rte_eth_stats *bnxt_stats); int bnxt_stats_reset_op(struct rte_eth_dev *eth_dev); -int bnxt_dev_xstats_get_names_op(__rte_unused struct rte_eth_dev *eth_dev, +int bnxt_dev_xstats_get_names_op(struct rte_eth_dev *eth_dev, struct rte_eth_xstat_name *xstats_names, __rte_unused unsigned int limit); int bnxt_dev_xstats_get_op(struct rte_eth_dev *eth_dev, -- 2.20.1