Skip to content

Commit d893ff8

Browse files
GustavoARSilvaaxboe
authored andcommitted
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>
1 parent d769a99 commit d893ff8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/block/loop.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,6 +1609,7 @@ static int lo_compat_ioctl(struct block_device *bdev, fmode_t mode,
16091609
case LOOP_GET_STATUS64:
16101610
case LOOP_SET_STATUS64:
16111611
arg = (unsigned long) compat_ptr(arg);
1612+
/* fall through */
16121613
case LOOP_SET_FD:
16131614
case LOOP_CHANGE_FD:
16141615
case LOOP_SET_BLOCK_SIZE:

0 commit comments

Comments
 (0)