]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
bcache: Annotate switch fall-through
authorBart Van Assche <bart.vanassche@wdc.com>
Mon, 19 Mar 2018 00:36:28 +0000 (17:36 -0700)
committerJens Axboe <axboe@kernel.dk>
Mon, 19 Mar 2018 02:15:20 +0000 (20:15 -0600)
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>
drivers/md/bcache/util.c

index a23cd6a14b7427acd9644992d47ee209f8dad092..6198041f0ee2239da4f50f19dbb5dcd4f581e663 100644 (file)
@@ -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')                                 \