Commit ee3c5db0 authored by Fengguang Wu's avatar Fengguang Wu Committed by Jens Axboe

blk-mq: blk_mq_unregister_hctx() can be static

CC: Jens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 67aec14c
...@@ -327,7 +327,7 @@ static struct kobj_type blk_mq_hw_ktype = { ...@@ -327,7 +327,7 @@ static struct kobj_type blk_mq_hw_ktype = {
.release = blk_mq_sysfs_release, .release = blk_mq_sysfs_release,
}; };
void blk_mq_unregister_hctx(struct blk_mq_hw_ctx *hctx) static void blk_mq_unregister_hctx(struct blk_mq_hw_ctx *hctx)
{ {
struct blk_mq_ctx *ctx; struct blk_mq_ctx *ctx;
int i; int i;
...@@ -341,7 +341,7 @@ void blk_mq_unregister_hctx(struct blk_mq_hw_ctx *hctx) ...@@ -341,7 +341,7 @@ void blk_mq_unregister_hctx(struct blk_mq_hw_ctx *hctx)
kobject_del(&hctx->kobj); kobject_del(&hctx->kobj);
} }
int blk_mq_register_hctx(struct blk_mq_hw_ctx *hctx) static int blk_mq_register_hctx(struct blk_mq_hw_ctx *hctx)
{ {
struct request_queue *q = hctx->queue; struct request_queue *q = hctx->queue;
struct blk_mq_ctx *ctx; struct blk_mq_ctx *ctx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment