Skip to content

qla2xxx: Fix various warnings reported by static source code analysis tools

Bart Van Assche linux-scsi 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 3 repliesIn review
  2. v210 patches 2 repliesSuperseded
  3. v110 patches 6 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10qla2xxx: Report both rsp_info and rsp_info_lendrivers/scsi/qla2xxx/qla_mr.c+2 -20 replies
2/10qla2xxx: Declare local functions staticdrivers/scsi/qla2xxx/qla_bsg.c drivers/scsi/qla2xxx/qla_iocb.c drivers/scsi/qla2xxx/qla_nx.c +1 more+6 -60 replies
3/10qla2xxx: Remove set-but-not-used variablesdrivers/scsi/qla2xxx/qla_attr.c drivers/scsi/qla2xxx/qla_bsg.c drivers/scsi/qla2xxx/qla_dbg.c +11 more+32 -1020 replies
4/10qla2xxx: Replace two macros with an inline functiondrivers/scsi/qla2xxx/qla_nx.c drivers/scsi/qla2xxx/qla_nx2.c drivers/scsi/qla2xxx/qla_nx2.h+15 -160 replies
5/10qla2xxx: Remove __constant_ prefixdrivers/scsi/qla2xxx/qla_dbg.c drivers/scsi/qla2xxx/qla_gs.c drivers/scsi/qla2xxx/qla_init.c +7 more+231 -2531 reply
6/10qla2xxx: Avoid that sparse complains about duplicate [noderef] attributesdrivers/scsi/qla2xxx/qla_dbg.c drivers/scsi/qla2xxx/qla_init.c drivers/scsi/qla2xxx/qla_iocb.c+4 -40 replies
7/10qla2xxx: Fix sparse annotationsdrivers/scsi/qla2xxx/qla_def.h drivers/scsi/qla2xxx/qla_iocb.c drivers/scsi/qla2xxx/qla_mbx.c +3 more+71 -820 replies
8/10qla2xxx: Remove a superfluous testdrivers/scsi/qla2xxx/qla_attr.c+1 -20 replies
9/10qla2xxx: Remove dead codedrivers/scsi/qla2xxx/qla_nx.c+5 -70 replies
10/10qla2xxx: Avoid that sparse complains about context imbalancesdrivers/scsi/qla2xxx/qla_dbg.c drivers/scsi/qla2xxx/qla_nx.c drivers/scsi/qla2xxx/qla_target.c +1 more+52 -01 reply

Reviews trailers per patch

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

PatchHimanshu Madhani
SeriesA-b
1/10A-b
2/10A-b
3/10A-b
4/10A-b
5/10A-b
6/10A-b
7/10A-b
8/10A-b
9/10A-b
10/10

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

Read the v3 thread

Cover letter [PATCH v3 0/10] qla2xxx: Fix various warnings reported by static source code analysis tools

This patch series addresses several warnings reported by static source code analysis tools for the qla2xxx driver (gcc (W=1), sparse (C=2) and smatch (C=2 CHECK="smatch -p=kernel")). The patches in this series are:

0001-qla2xxx-Report-both-rsp_info-and-rsp_info_len.patch 0002-qla2xxx-Declare-local-functions-static.patch 0003-qla2xxx-Remove-set-but-not-used-variables.patch 0004-qla2xxx-Replace-two-macros-with-an-inline-function.patch 0005-qla2xxx-Remove-__constant_-prefix.patch 0006-qla2xxx-Avoid-that-sparse-complains-about-duplicate-.patch 0007-qla2xxx-Fix-sparse-annotations.patch 0008-qla2xxx-Remove-a-superfluous-test.patch 0009-qla2xxx-Remove-dead-code.patch 0010-qla2xxx-Avoid-that-sparse-complains-about-context-im.patch

Version 3 is a resend of the patches from v2 that are not yet upstream.

The changes compared to v1 of this series are:
- Rebased this patch series onto kernel v4.1-rc6.
- Also removed variable 'd2' in patch 3.
- Also remove the recently introduced dead code in patch 10.