mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-17 01:04:19 +08:00
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>
This commit is contained in:
parent
4a4e443835
commit
9dfbdec7b7
@ -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') \
|
||||
|
Loading…
Reference in New Issue
Block a user