cfq: Annotate fall-through in a switch statement
authorBart Van Assche <bart.vanassche@wdc.com>
Tue, 7 Aug 2018 23:17:28 +0000 (16:17 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 Aug 2018 23:57:11 +0000 (17:57 -0600)
This patch avoids that gcc complains about fall-through when building
with W=1.

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

index 82b6c27b3245512dfa42a718149067e71c028705..ec6acdd58b7a653142dff7abb305d92a1c3995cc 100644 (file)
@@ -3666,6 +3666,7 @@ static void cfq_init_prio_data(struct cfq_queue *cfqq, struct cfq_io_cq *cic)
        switch (ioprio_class) {
        default:
                printk(KERN_ERR "cfq: bad prio %x\n", ioprio_class);
+               /* fall through */
        case IOPRIO_CLASS_NONE:
                /*
                 * no prio set, inherit CPU scheduling settings