Skip to content

fix unused but set variables

Conor Walsh dpdk-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7app/test: fix unused but set variablesapp/test/test_distributor_perf.c app/test/test_thash_perf.c+2 -31 reply
2/7drivers/bus/fslmc: fix unused but set variablesdrivers/bus/fslmc/fslmc_bus.c+0 -20 replies
3/7drivers/common/qat: fix unused but set variablesdrivers/common/qat/qat_pf2vf.c+0 -20 replies
4/7drivers/event/sw: fix unused but set variablesdrivers/event/sw/sw_evdev.c+0 -21 reply
5/7drivers/net: fix unused but set variablesdrivers/net/bnxt/bnxt_rxr.c drivers/net/bnxt/tf_ulp/ulp_utils.c drivers/net/hinic/base/hinic_pmd_mgmt.c +6 more+14 -439 replies
6/7examples/performance-thread: fix unused but set variablesexamples/performance-thread/l3fwd-thread/main.c+0 -30 replies
7/7lib/power: fix unused but set variableslib/power/rte_power_empty_poll.c+1 -23 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchVladimir MedvedkinHarry van HaarenSomnath KoturAjit KhapardeDavid Marchand
SeriesA-b A-b R-b R-b
1/7A-b
2/7
3/7
4/7
5/7A-b A-b
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 0/7] fix unused but set variables

When DPDK is compiled with clang 13, several warnings for unused but set variables are present.

This patchset fixes these warnings, which were present within:
- app/test
- drivers/bus/fslmc
- drivers/common/qat
- drivers/event/sw
- drivers/net
- examples/performance-thread
- lib/power

I split this patchset into 7 patches grouped broadly by subdir, as this set touches code from a lot of different authors I thought it would make it easier to review.

Bugzilla ID: 881

Conor Walsh (7):
app/test: fix unused but set variables drivers/bus/fslmc: fix unused but set variables drivers/common/qat: fix unused but set variables drivers/event/sw: fix unused but set variables drivers/net: fix unused but set variables examples/performance-thread: fix unused but set variables lib/power: fix unused but set variables

 app/test/test_distributor_perf.c              |  3 ---
 app/test/test_thash_perf.c                    |  2 ++
 drivers/bus/fslmc/fslmc_bus.c                 |  2 --
 drivers/common/qat/qat_pf2vf.c                |  2 --
 drivers/event/sw/sw_evdev.c                   |  2 --
 drivers/net/bnxt/bnxt_rxr.c                   | 22 -------------------
 drivers/net/bnxt/tf_ulp/ulp_utils.c           |  3 ---
 drivers/net/hinic/base/hinic_pmd_mgmt.c       |  6 -----
 drivers/net/liquidio/lio_rxtx.c               |  2 --
 drivers/net/nfp/nfp_cpp_bridge.c              |  6 ++---
 drivers/net/octeontx/octeontx_rxtx.h          |  3 +--
 drivers/net/qede/base/ecore_vf.c              |  5 +----
 drivers/net/txgbe/txgbe_ethdev_vf.c           |  2 ++
 drivers/net/vmxnet3/vmxnet3_rxtx.c            |  8 +++++++
 .../performance-thread/l3fwd-thread/main.c    |  3 ---
 lib/power/rte_power_empty_poll.c              |  3 +--
 16 files changed, 17 insertions(+), 57 deletions(-)
Signature · 1 line
2.25.1