diff options
author | Zheng Bin <zhengbin13@huawei.com> | 2020-04-29 09:36:32 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-04-29 09:16:53 -0600 |
commit | e1b586f2b83d56f40faa5f23d5ecac866d61320d (patch) | |
tree | 987ed4b94f6a35d44a8c9f5b6303ce9946e729d5 /block/blk-mq-sched.c | |
parent | 8cf7961dab42c9177a556b719c15f5b9449c24d1 (diff) | |
download | lwn-e1b586f2b83d56f40faa5f23d5ecac866d61320d.tar.gz lwn-e1b586f2b83d56f40faa5f23d5ecac866d61320d.zip |
blk-mq: make function '__blk_mq_sched_dispatch_requests' static
Fix sparse warnings:
block/blk-mq-sched.c:209:5: warning: symbol '__blk_mq_sched_dispatch_requests' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq-sched.c')
-rw-r--r-- | block/blk-mq-sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq-sched.c b/block/blk-mq-sched.c index 702ce525933c..fdcc2c1dd178 100644 --- a/block/blk-mq-sched.c +++ b/block/blk-mq-sched.c @@ -206,7 +206,7 @@ static int blk_mq_do_dispatch_ctx(struct blk_mq_hw_ctx *hctx) return ret; } -int __blk_mq_sched_dispatch_requests(struct blk_mq_hw_ctx *hctx) +static int __blk_mq_sched_dispatch_requests(struct blk_mq_hw_ctx *hctx) { struct request_queue *q = hctx->queue; struct elevator_queue *e = q->elevator; |