diff mbox

blk-mq: make __blk_mq_stop_hw_queues static

Message ID 20170508104440.10945-1-colin.king@canonical.com (mailing list archive)
State New, archived
Headers show

Commit Message

Colin King May 8, 2017, 10:44 a.m. UTC
From: Colin Ian King <colin.king@canonical.com>

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: 2719aa217e0d0 ("blk-mq: don't use sync workqueue flushing from drivers")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 block/blk-mq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jens Axboe May 8, 2017, 2:09 p.m. UTC | #1
On 05/08/2017 04:44 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
> 
> 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?

Thanks, added.
diff mbox

Patch

diff --git a/block/blk-mq.c b/block/blk-mq.c
index 5d4ce7eb8dbf..5385fc89a6d2 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -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;