Skip to content

Commit

Permalink
net/vmxnet3: fix build with clang 13
Browse files Browse the repository at this point in the history
[ upstream commit e76eb56 ]

The completed variable is used for debug logs even though clang 13
reports it as unused.

Bugzilla ID: 881
Fixes: c3ecdbb ("vmxnet3: support TSO")

Reported-by: Liang Longfeng <longfengx.liang@intel.com>
Signed-off-by: Conor Walsh <conor.walsh@intel.com>
Reviewed-by: David Marchand <david.marchand@redhat.com>
  • Loading branch information
conorwalsh-intel authored and cpaelzer committed Nov 30, 2021
1 parent fd9fd79 commit 36e063b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/vmxnet3/vmxnet3_rxtx.c
Expand Up @@ -341,6 +341,9 @@ vmxnet3_tq_tx_complete(vmxnet3_tx_queue_t *txq)
}

PMD_TX_LOG(DEBUG, "Processed %d tx comps & command descs.", completed);

/* To avoid compiler warnings when not in DEBUG mode. */
RTE_SET_USED(completed);
}

uint16_t
Expand Down

0 comments on commit 36e063b

Please sign in to comment.