Skip to content

Commit

Permalink
blk-mq: make __blk_mq_stop_hw_queues static
Browse files Browse the repository at this point in the history
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: 2719aa2 ("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>
  • Loading branch information
Colin Ian King authored and axboe committed May 8, 2017
1 parent 629b1b2 commit ebd7685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-mq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ebd7685

Please sign in to comment.