Skip to content

Commit

Permalink
net/bnxt: drop unused attribute
Browse files Browse the repository at this point in the history
[ upstream commit 4f28d9a ]

Remove "__rte_unused" instances that are wrongly marked.

Fixes: 6dc8323 ("net/bnxt: support port representor data path")
Fixes: 1bf01f5 ("net/bnxt: prevent device access when device is in reset")

Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
  • Loading branch information
Kalesh AP authored and steevenlee committed Jun 8, 2021
1 parent 15cf480 commit 88be45d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/net/bnxt/bnxt_reps.c
Expand Up @@ -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;
Expand Down Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion drivers/net/bnxt/bnxt_stats.h
Expand Up @@ -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,
Expand Down

0 comments on commit 88be45d

Please sign in to comment.