Skip to content

Commit

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

Acked-by: Paolo Valente <paolo.valente@linaro.org>
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Bart Van Assche authored and Jens Axboe committed Sep 1, 2017
1 parent a254d98 commit fa393d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions block/bfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -3780,6 +3780,7 @@ bfq_set_next_ioprio_data(struct bfq_queue *bfqq, struct bfq_io_cq *bic)
default:
dev_err(bfqq->bfqd->queue->backing_dev_info->dev,
"bfq: bad prio class %d\n", ioprio_class);
/* fall through */
case IOPRIO_CLASS_NONE:
/*
* No prio set, inherit CPU scheduling settings.
Expand Down

0 comments on commit fa393d1

Please sign in to comment.