summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2018-08-08 01:17:28 +0200
committerJens Axboe <axboe@kernel.dk>2018-08-08 01:57:11 +0200
commit9b4f43460dd0ee461f5dd65ee1efa152f2e52559 (patch)
treed275a37cdbe3700636f9ea01674e85eea19cbb6e /block
parentblk-wbt: Avoid lock contention and thundering herd issue in wbt_wait (diff)
downloadlinux-9b4f43460dd0ee461f5dd65ee1efa152f2e52559.tar.xz
linux-9b4f43460dd0ee461f5dd65ee1efa152f2e52559.zip
cfq: Annotate fall-through in a switch statement
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>
Diffstat (limited to 'block')
-rw-r--r--block/cfq-iosched.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index 82b6c27b3245..ec6acdd58b7a 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -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