mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-16 18:26:42 +00:00
block/loop: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
d769a99296
commit
d893ff8603
@ -1609,6 +1609,7 @@ static int lo_compat_ioctl(struct block_device *bdev, fmode_t mode,
|
|||||||
case LOOP_GET_STATUS64:
|
case LOOP_GET_STATUS64:
|
||||||
case LOOP_SET_STATUS64:
|
case LOOP_SET_STATUS64:
|
||||||
arg = (unsigned long) compat_ptr(arg);
|
arg = (unsigned long) compat_ptr(arg);
|
||||||
|
/* fall through */
|
||||||
case LOOP_SET_FD:
|
case LOOP_SET_FD:
|
||||||
case LOOP_CHANGE_FD:
|
case LOOP_CHANGE_FD:
|
||||||
case LOOP_SET_BLOCK_SIZE:
|
case LOOP_SET_BLOCK_SIZE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user