]> git.baikalelectronics.ru Git - kernel.git/commitdiff
blk-mq: make __blk_mq_stop_hw_queues static
authorColin Ian King <colin.king@canonical.com>
Mon, 8 May 2017 10:44:40 +0000 (11:44 +0100)
committerJens Axboe <axboe@fb.com>
Mon, 8 May 2017 14:09:39 +0000 (08:09 -0600)
Making __blk_mq_stop_hw_queues static fixes sparse warning:

  block/blk-mq.c:6: warning: symbol '__blk_mq_stop_hw_queues' was not
  declared. Should it be static?

Fixes: 29621862a44ac ("blk-mq: don't use sync workqueue flushing from drivers")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c

index a7e6b353e4e98e2844f7eb318ea01a3463601670..9ae1d9ccf4df41178ce765334416e5211983653a 100644 (file)
@@ -1236,7 +1236,7 @@ void blk_mq_stop_hw_queue(struct blk_mq_hw_ctx *hctx)
 }
 EXPORT_SYMBOL(blk_mq_stop_hw_queue);
 
-void __blk_mq_stop_hw_queues(struct request_queue *q, bool sync)
+static void __blk_mq_stop_hw_queues(struct request_queue *q, bool sync)
 {
        struct blk_mq_hw_ctx *hctx;
        int i;