Skip to content

Fix clang -Wunused-but-set-variable warnings

Bill Wendling linux-scsi linux-toolchains lkml netdev oe-kbuild-all 2 versions – Applied

Status from this message: Applied to 5.15/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 26 repliesApplied
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Mark "no_warn" as "__maybe_unused" to avoid separate warning.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3base: mark 'no_warn' as unuseddrivers/base/module.c+1 -122 replies
2/3bnx2x: remove unused variable 'cur_data_offset'drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c+0 -61 reply
3/3scsi: qla2xxx: remove unused variable 'status'drivers/scsi/qla2xxx/qla_nx.c+0 -22 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchNathan Chancellor
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] Fix clang -Wunused-but-set-variable warnings

These patches clean up warnings from clang's '-Wunused-but-set-variable' flag.

Changes for v2:
- Mark "no_warn" as "__maybe_unused" to avoid separate warning.

Bill Wendling (3):
base: mark 'no_warn' as unused
bnx2x: remove unused variable 'cur_data_offset'
scsi: qla2xxx: remove unused variable 'status'

 drivers/base/module.c                             | 2 +-
 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c | 6 ------
 drivers/scsi/qla2xxx/qla_nx.c                     | 2 --
 3 files changed, 1 insertion(+), 9 deletions(-)
Signature · 1 line
2.32.0.432.gabb21c7263-goog