blk-mq: blk_mq_unregister_hctx() can be static
authorFengguang Wu <fengguang.wu@intel.com>
Fri, 30 May 2014 16:31:13 +0000 (10:31 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 30 May 2014 16:31:13 +0000 (10:31 -0600)
CC: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-sysfs.c

index e5f575f..ed52178 100644 (file)
@@ -327,7 +327,7 @@ static struct kobj_type blk_mq_hw_ktype = {
        .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;
        int i;
@@ -341,7 +341,7 @@ void blk_mq_unregister_hctx(struct blk_mq_hw_ctx *hctx)
        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 blk_mq_ctx *ctx;