From: Bart Van Assche Date: Mon, 19 Mar 2018 00:36:28 +0000 (-0700) Subject: bcache: Annotate switch fall-through X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9dfbdec7b7fea1ff1b7b5d5d12980dbc7dca46c7;p=linux.git 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 Reviewed-by: Michael Lyle Signed-off-by: Jens Axboe --- diff --git a/drivers/md/bcache/util.c b/drivers/md/bcache/util.c index a23cd6a14b742..6198041f0ee22 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') \