Skip to content

Commit ee3c5db

Browse files
Fengguang Wuaxboe
authored andcommitted
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>
1 parent 67aec14 commit ee3c5db

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎block/blk-mq-sysfs.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ static struct kobj_type blk_mq_hw_ktype = {
327327
.release = blk_mq_sysfs_release,
328328
};
329329

330-
void blk_mq_unregister_hctx(struct blk_mq_hw_ctx *hctx)
330+
static void blk_mq_unregister_hctx(struct blk_mq_hw_ctx *hctx)
331331
{
332332
struct blk_mq_ctx *ctx;
333333
int i;
@@ -341,7 +341,7 @@ void blk_mq_unregister_hctx(struct blk_mq_hw_ctx *hctx)
341341
kobject_del(&hctx->kobj);
342342
}
343343

344-
int blk_mq_register_hctx(struct blk_mq_hw_ctx *hctx)
344+
static int blk_mq_register_hctx(struct blk_mq_hw_ctx *hctx)
345345
{
346346
struct request_queue *q = hctx->queue;
347347
struct blk_mq_ctx *ctx;

0 commit comments

Comments
 (0)