Skip to content

Commit 7be2176

Browse files
GustavoARSilvaaxboe
authored andcommitted
ataflop: Mark expected switch fall-through
Mark switch cases where we are expecting to fall through. This patch fixes the following warning (Building: m68k): drivers/block/ataflop.c: In function ‘fd_locked_ioctl’: drivers/block/ataflop.c:1728:3: warning: this statement may fall through [-Wimplicit-fallthrough=] set_capacity(floppy->disk, MAX_DISK_SIZE * 2); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/block/ataflop.c:1729:2: note: here case FDFMTEND: ^~~~ Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 609488b commit 7be2176

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/block/ataflop.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,6 +1726,7 @@ static int fd_locked_ioctl(struct block_device *bdev, fmode_t mode,
17261726
/* MSch: invalidate default_params */
17271727
default_params[drive].blocks = 0;
17281728
set_capacity(floppy->disk, MAX_DISK_SIZE * 2);
1729+
/* Fall through */
17291730
case FDFMTEND:
17301731
case FDFLUSH:
17311732
/* invalidate the buffer track to force a reread */

0 commit comments

Comments
 (0)