Skip to content

Commit

Permalink
blk-mq: blk_mq_unregister_hctx() can be static
Browse files Browse the repository at this point in the history
CC: Jens Axboe <[email protected]>
Signed-off-by: Fengguang Wu <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Fengguang Wu authored and axboe committed May 30, 2014
1 parent 67aec14 commit ee3c5db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block/blk-mq-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit ee3c5db

Please sign in to comment.