summaryrefslogtreecommitdiffstats
path: root/drivers/block/virtio_blk.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-03-30 22:39:16 +0200
committerJens Axboe <axboe@fb.com>2017-03-31 16:28:58 +0200
commitf363b089be0a39fe4282c688118a51d21f952bc7 (patch)
tree67ef76e6c2f43898be5f8ff9caaf692132236f86 /drivers/block/virtio_blk.c
parentnull_blk: add blocking mode (diff)
downloadlinux-f363b089be0a39fe4282c688118a51d21f952bc7.tar.xz
linux-f363b089be0a39fe4282c688118a51d21f952bc7.zip
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>
Diffstat (limited to 'drivers/block/virtio_blk.c')
-rw-r--r--drivers/block/virtio_blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/virtio_blk.c b/drivers/block/virtio_blk.c
index 1d4c9f8bc1e1..2d8290169271 100644
--- a/drivers/block/virtio_blk.c
+++ b/drivers/block/virtio_blk.c
@@ -597,7 +597,7 @@ static int virtblk_map_queues(struct blk_mq_tag_set *set)
return blk_mq_virtio_map_queues(set, vblk->vdev, 0);
}
-static struct blk_mq_ops virtio_mq_ops = {
+static const struct blk_mq_ops virtio_mq_ops = {
.queue_rq = virtio_queue_rq,
.complete = virtblk_request_done,
.init_request = virtblk_init_request,