block: Add fallthrough markers to switch statements
authorBart Van Assche <bart.vanassche@wdc.com>
Wed, 21 Jun 2017 16:40:11 +0000 (09:40 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Jun 2017 17:46:07 +0000 (11:46 -0600)
commite29387ebd86e903702422a8361fd3e03aca25573
treea47ec01680c8f05dd74e5fb37c3686811d286b3e
parent0e9350de2ecdf22f003107d3d21db59e17c521ad
block: Add fallthrough markers to switch statements

This patch suppresses gcc 7 warnings about falling through in switch
statements when building with W=1. From the gcc documentation: The
-Wimplicit-fallthrough=3 warning is enabled by -Wextra. See also
https://gcc.gnu.org/onlinedocs/gcc-7.1.0/gcc/Warning-Options.html.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/badblocks.c
block/elevator.c
block/ioprio.c