bcache: Compiler, sparse and smatch fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest16 patches 34 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/16 | bcache: Fix indentationdrivers/ drivers/ | +2 | 3 replies | |
| 2/16 | bcache: Add __printf annotation to __bch_check_keys()drivers/ | +3 | 1 reply | |
| 3/16 | bcache: Annotate switch fall-throughdrivers/ | +7 | 2 replies | |
| 4/16 | bcache: Fix kernel-doc warningsdrivers/ drivers/ drivers/ +1 more | +14 | 1 reply | |
| 5/16 | bcache: Remove an unused variabledrivers/ | +0 | 5 replies | |
| 6/16 | bcache: Suppress more warnings about set-but-not-used variablesdrivers/ drivers/ | +3 | 3 replies | |
| 7/16 | bcache: Reduce the number of sparse complaints about lock imbalancesdrivers/ | +2 | 1 reply | |
| 8/16 | bcache: Fix a compiler warning in bcache_device_init()drivers/ | +3 | 2 replies | |
| 9/16 | bcache: Remove a redundant assignmentdrivers/ | +0 | 1 reply | |
| 10/16 | bcache: Suppress a compiler warning in bch_##name##_h()drivers/ | +4 | 0 replies | |
| 11/16 | bcache: Check the d->disk pointer before using itdrivers/ | +1 | 1 reply | |
| 12/16 | bcache: Make it easier for static analyzers to analyze bch_allocator_thread()drivers/ | +2 | 3 replies | |
| 13/16 | bcache: Make bch_dump_read() fail if copying to user space failsdrivers/ | +2 | 3 replies | |
| 14/16 | bcache: Make csum_set() implementation easier to readdrivers/ | +6 | 1 reply | |
| 15/16 | bcache: Fix an endianness bugdrivers/ drivers/ | +14 | 3 replies | |
| 16/16 | bcache: Fix endianness annotationsdrivers/ include/ | +68 | 2 replies |
Reviews trailers per patch
8 of 16 patches have a Reviewed-by or Acked-by.
| Patch | Coly Li | Christoph Hellwig |
|---|---|---|
| 1/16 | R-b R-b | |
| 2/16 | ||
| 3/16 | R-b | |
| 4/16 | ||
| 5/16 | ||
| 6/16 | R-b | |
| 7/16 | ||
| 8/16 | R-b | |
| 9/16 | R-b | |
| 10/16 | ||
| 11/16 | R-b | |
| 12/16 | R-b | |
| 13/16 | ||
| 14/16 | ||
| 15/16 | ||
| 16/16 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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