aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorFengguang Wu <fengguang.wu@intel.com>2014-05-30 12:31:13 -0400
committerJens Axboe <axboe@fb.com>2014-05-30 12:31:13 -0400
commitee3c5db0896d85187b5f31b5482ed8fd308d31ee (patch)
tree947d5635b5ca89430f675bd28ab91f1bd18c7927 /block
parent67aec14ce87fe25bdfff7dbf468556333df11c4e (diff)
blk-mq: blk_mq_unregister_hctx() can be static
CC: Jens Axboe <axboe@kernel.dk> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq-sysfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-mq-sysfs.c b/block/blk-mq-sysfs.c
index e5f575ff0bf9..ed5217867555 100644
--- a/block/blk-mq-sysfs.c
+++ b/block/blk-mq-sysfs.c
@@ -327,7 +327,7 @@ static struct kobj_type blk_mq_hw_ktype = {
327 .release = blk_mq_sysfs_release, 327 .release = blk_mq_sysfs_release,
328}; 328};
329 329
330void blk_mq_unregister_hctx(struct blk_mq_hw_ctx *hctx) 330static void blk_mq_unregister_hctx(struct blk_mq_hw_ctx *hctx)
331{ 331{
332 struct blk_mq_ctx *ctx; 332 struct blk_mq_ctx *ctx;
333 int i; 333 int i;
@@ -341,7 +341,7 @@ void blk_mq_unregister_hctx(struct blk_mq_hw_ctx *hctx)
341 kobject_del(&hctx->kobj); 341 kobject_del(&hctx->kobj);
342} 342}
343 343
344int blk_mq_register_hctx(struct blk_mq_hw_ctx *hctx) 344static int blk_mq_register_hctx(struct blk_mq_hw_ctx *hctx)
345{ 345{
346 struct request_queue *q = hctx->queue; 346 struct request_queue *q = hctx->queue;
347 struct blk_mq_ctx *ctx; 347 struct blk_mq_ctx *ctx;