diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-03-18 17:36:28 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-03-18 20:15:20 -0600 |
commit | 9dfbdec7b7fea1ff1b7b5d5d12980dbc7dca46c7 (patch) | |
tree | d95cb3aa8c4350c1bd2a6e5adc716a3d73df47c2 /drivers/md | |
parent | 4a4e443835a43a79113cc237c472c0d268eb1e1c (diff) | |
download | op-kernel-dev-9dfbdec7b7fea1ff1b7b5d5d12980dbc7dca46c7.zip op-kernel-dev-9dfbdec7b7fea1ff1b7b5d5d12980dbc7dca46c7.tar.gz |
bcache: Annotate switch fall-through
This patch avoids that building with W=1 triggers complaints about
switch fall-throughs.
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Michael Lyle <mlyle@lyle.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/bcache/util.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/md/bcache/util.c b/drivers/md/bcache/util.c index a23cd6a..6198041 100644 --- a/drivers/md/bcache/util.c +++ b/drivers/md/bcache/util.c @@ -32,20 +32,27 @@ int bch_ ## name ## _h(const char *cp, type *res) \ case 'y': \ case 'z': \ u++; \ + /* fall through */ \ case 'e': \ u++; \ + /* fall through */ \ case 'p': \ u++; \ + /* fall through */ \ case 't': \ u++; \ + /* fall through */ \ case 'g': \ u++; \ + /* fall through */ \ case 'm': \ u++; \ + /* fall through */ \ case 'k': \ u++; \ if (e++ == cp) \ return -EINVAL; \ + /* fall through */ \ case '\n': \ case '\0': \ if (*e == '\n') \ |