Commit 9dfbdec7 authored by Bart Van Assche's avatar Bart Van Assche Committed by Jens Axboe

bcache: Annotate switch fall-through

This patch avoids that building with W=1 triggers complaints about
switch fall-throughs.
Signed-off-by: default avatarBart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: default avatarMichael Lyle <mlyle@lyle.org>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 4a4e4438
...@@ -32,20 +32,27 @@ int bch_ ## name ## _h(const char *cp, type *res) \ ...@@ -32,20 +32,27 @@ int bch_ ## name ## _h(const char *cp, type *res) \
case 'y': \ case 'y': \
case 'z': \ case 'z': \
u++; \ u++; \
/* fall through */ \
case 'e': \ case 'e': \
u++; \ u++; \
/* fall through */ \
case 'p': \ case 'p': \
u++; \ u++; \
/* fall through */ \
case 't': \ case 't': \
u++; \ u++; \
/* fall through */ \
case 'g': \ case 'g': \
u++; \ u++; \
/* fall through */ \
case 'm': \ case 'm': \
u++; \ u++; \
/* fall through */ \
case 'k': \ case 'k': \
u++; \ u++; \
if (e++ == cp) \ if (e++ == cp) \
return -EINVAL; \ return -EINVAL; \
/* fall through */ \
case '\n': \ case '\n': \
case '\0': \ case '\0': \
if (*e == '\n') \ if (*e == '\n') \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment