blk-mq: constify struct blk_mq_ops

Constify all instances of blk_mq_ops, as they are never modified.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
Eric Biggers
2017-03-30 13:39:16 -07:00
committed by Jens Axboe
parent db5bcf87bb
commit f363b089be
14 changed files with 18 additions and 18 deletions

View File

@@ -347,7 +347,7 @@ static int ubiblock_init_request(void *data, struct request *req,
return 0;
}
static struct blk_mq_ops ubiblock_mq_ops = {
static const struct blk_mq_ops ubiblock_mq_ops = {
.queue_rq = ubiblock_queue_rq,
.init_request = ubiblock_init_request,
};