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:
@@ -1129,7 +1129,7 @@ static int nvme_create_queue(struct nvme_queue *nvmeq, int qid)
|
||||
return result;
|
||||
}
|
||||
|
||||
static struct blk_mq_ops nvme_mq_admin_ops = {
|
||||
static const struct blk_mq_ops nvme_mq_admin_ops = {
|
||||
.queue_rq = nvme_queue_rq,
|
||||
.complete = nvme_complete_rq,
|
||||
.init_hctx = nvme_admin_init_hctx,
|
||||
@@ -1138,7 +1138,7 @@ static struct blk_mq_ops nvme_mq_admin_ops = {
|
||||
.timeout = nvme_timeout,
|
||||
};
|
||||
|
||||
static struct blk_mq_ops nvme_mq_ops = {
|
||||
static const struct blk_mq_ops nvme_mq_ops = {
|
||||
.queue_rq = nvme_queue_rq,
|
||||
.complete = nvme_complete_rq,
|
||||
.init_hctx = nvme_init_hctx,
|
||||
|
Reference in New Issue
Block a user