Skip to content

Commit 03e1f9a

Browse files
net/fm10k: fix build with GCC 16
Build error reported with GCC 16, due to a set but unused variable. Fix the issue by removing the setting of the var and marking it as unused. ../drivers/net/intel/fm10k/base/fm10k_common.c: In function 'fm10k_unbind_hw_stats_q': ../drivers/net/intel/fm10k/base/fm10k_common.c:480:62: warning: parameter 'idx' set but not used [-Wunused-but-set-parameter=] 480 | void fm10k_unbind_hw_stats_q(struct fm10k_hw_stats_q *q, u32 idx, u32 count) Bugzilla ID: 1822 Fixes: 7223d20 ("fm10k: add base driver") Cc: [email protected] Cc: [email protected] Signed-off-by: Bruce Richardson <[email protected]> Acked-by: Vladimir Medvedkin <[email protected]>
1 parent 643ef5f commit 03e1f9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/intel/fm10k/base/fm10k_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,11 +477,11 @@ void fm10k_update_hw_stats_q(struct fm10k_hw *hw, struct fm10k_hw_stats_q *q,
477477
* Function invalidates the index values for the queues so any updates that
478478
* may have happened are ignored and the base for the queue stats is reset.
479479
**/
480-
void fm10k_unbind_hw_stats_q(struct fm10k_hw_stats_q *q, u32 idx, u32 count)
480+
void fm10k_unbind_hw_stats_q(struct fm10k_hw_stats_q *q, u32 idx __rte_unused, u32 count)
481481
{
482482
u32 i;
483483

484-
for (i = 0; i < count; i++, idx++, q++) {
484+
for (i = 0; i < count; i++, q++) {
485485
q->rx_stats_idx = 0;
486486
q->tx_stats_idx = 0;
487487
}

0 commit comments

Comments
 (0)