Skip to content

Commit

Permalink
UPSTREAM: cfq: Annotate fall-through in a switch statement
Browse files Browse the repository at this point in the history
This patch avoids that gcc complains about fall-through when building
with W=1.

Change-Id: 42092933839b8b33b001aa1fb8a1976ccac16fd6
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: atndko <z1281552865@gmail.com>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
Signed-off-by: TogoFire <togofire@mailfence.com>
  • Loading branch information
KAGA-KOKO authored and TogoFire committed Apr 22, 2023
1 parent 796b0a5 commit 8594e9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions block/cfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3749,6 +3749,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
Expand Down

0 comments on commit 8594e9e

Please sign in to comment.