summaryrefslogtreecommitdiffstats
path: root/drivers/block/loop.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2017-03-30 13:39:16 -0700
committerJens Axboe <axboe@fb.com>2017-03-31 08:28:58 -0600
commitf363b089be0a39fe4282c688118a51d21f952bc7 (patch)
tree67ef76e6c2f43898be5f8ff9caaf692132236f86 /drivers/block/loop.c
parentdb5bcf87bb9e856e90c131d6e636a5550c2bbcd3 (diff)
downloadblackbird-op-linux-f363b089be0a39fe4282c688118a51d21f952bc7.tar.gz
blackbird-op-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/loop.c')
-rw-r--r--drivers/block/loop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 0ecb6461ed81..cc981f34e017 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -1710,7 +1710,7 @@ static int loop_init_request(void *data, struct request *rq,
return 0;
}
-static struct blk_mq_ops loop_mq_ops = {
+static const struct blk_mq_ops loop_mq_ops = {
.queue_rq = loop_queue_rq,
.init_request = loop_init_request,
};
OpenPOWER on IntegriCloud