Skip to content

bcache: Compiler, sparse and smatch fixes

Bart Van Assche linux-block 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 34 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16bcache: Fix indentationdrivers/md/bcache/btree.c drivers/md/bcache/writeback.h+2 -23 replies
2/16bcache: Add __printf annotation to __bch_check_keys()drivers/md/bcache/bset.h+3 -21 reply
3/16bcache: Annotate switch fall-throughdrivers/md/bcache/util.c+7 -02 replies
4/16bcache: Fix kernel-doc warningsdrivers/md/bcache/btree.c drivers/md/bcache/closure.c drivers/md/bcache/request.c +1 more+14 -151 reply
5/16bcache: Remove an unused variabledrivers/md/bcache/extents.c+0 -25 replies
6/16bcache: Suppress more warnings about set-but-not-used variablesdrivers/md/bcache/bset.c drivers/md/bcache/journal.c+3 -33 replies
7/16bcache: Reduce the number of sparse complaints about lock imbalancesdrivers/md/bcache/journal.c+2 -01 reply
8/16bcache: Fix a compiler warning in bcache_device_init()drivers/md/bcache/super.c+3 -32 replies
9/16bcache: Remove a redundant assignmentdrivers/md/bcache/super.c+0 -11 reply
10/16bcache: Suppress a compiler warning in bch_##name##_h()drivers/md/bcache/util.c+4 -40 replies
11/16bcache: Check the d->disk pointer before using itdrivers/md/bcache/super.c+1 -11 reply
12/16bcache: Make it easier for static analyzers to analyze bch_allocator_thread()drivers/md/bcache/alloc.c+2 -53 replies
13/16bcache: Make bch_dump_read() fail if copying to user space failsdrivers/md/bcache/debug.c+2 -33 replies
14/16bcache: Make csum_set() implementation easier to readdrivers/md/bcache/bcache.h+6 -41 reply
15/16bcache: Fix an endianness bugdrivers/md/bcache/bcache.h drivers/md/bcache/super.c+14 -23 replies
16/16bcache: Fix endianness annotationsdrivers/md/bcache/super.c include/uapi/linux/bcache.h+68 -602 replies

Reviews trailers per patch

8 of 16 patches have a Reviewed-by or Acked-by.

PatchColy LiChristoph Hellwig
1/16R-b R-b
2/16
3/16R-b
4/16
5/16
6/16R-b
7/16
8/16R-b
9/16R-b
10/16
11/16R-b
12/16R-b
13/16
14/16
15/16
16/16R-b R-b

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

Read the v1 thread

Cover letter [PATCH 00/16] bcache: Compiler, sparse and smatch fixes

Hello Michael, Coly and Christoph,

A few weeks ago I analyzed the compiler (W=1), sparse and smatch warnings triggered by the bcache driver. This patch series is what I came up with. Although none of these patches have been tested I think these patches are worth a closer look. Feedback is welcome.

Thanks,

Bart.

Bart Van Assche (16):
bcache: Fix indentation
bcache: Add __printf annotation to __bch_check_keys()
bcache: Annotate switch fall-through
bcache: Fix kernel-doc warnings
bcache: Remove an unused variable
bcache: Suppress more warnings about set-but-not-used variables
bcache: Reduce the number of sparse complaints about lock imbalances
bcache: Fix a compiler warning in bcache_device_init()
bcache: Remove a redundant assignment
bcache: Suppress a compiler warning in bch_##name##_h()
bcache: Check the d->disk pointer before using it
bcache: Make it easier for static analyzers to analyze
bch_allocator_thread()
bcache: Make bch_dump_read() fail if copying to user space fails
bcache: Make csum_set() implementation easier to read
bcache: Fix an endianness bug
bcache: Fix endianness annotations

 drivers/md/bcache/alloc.c     |   7 +--
 drivers/md/bcache/bcache.h    |  22 ++++++--
 drivers/md/bcache/bset.c      |   4 +-
 drivers/md/bcache/bset.h      |   5 +-
 drivers/md/bcache/btree.c     |   4 +-
 drivers/md/bcache/closure.c   |   8 +--
 drivers/md/bcache/debug.c     |   5 +-
 drivers/md/bcache/extents.c   |   2 -
 drivers/md/bcache/journal.c   |   4 +-
 drivers/md/bcache/request.c   |   1 +
 drivers/md/bcache/super.c     |  23 ++++----
 drivers/md/bcache/util.c      |  33 +++++++-----
 drivers/md/bcache/writeback.h |   2 +-
 include/uapi/linux/bcache.h   | 118 ++++++++++++++++++++++--------------------
 14 files changed, 131 insertions(+), 107 deletions(-)
Signature · 1 line
2.16.2