Skip to content

Commit 70bafa5

Browse files
hailan94axboe
authored andcommitted
blk-mq-debugfs: make blk_mq_debugfs_register_rqos() static
Because it's only used inside blk-mq-debugfs.c now. Reviewed-by: Nilay Shroff <nilay@linux.ibm.com> Signed-off-by: Yu Kuai <yukuai@fnnas.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Reviewed-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 3c17a34 commit 70bafa5

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

block/blk-mq-debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ void blk_mq_debugfs_unregister_rqos(struct rq_qos *rqos)
744744
rqos->debugfs_dir = NULL;
745745
}
746746

747-
void blk_mq_debugfs_register_rqos(struct rq_qos *rqos)
747+
static void blk_mq_debugfs_register_rqos(struct rq_qos *rqos)
748748
{
749749
struct request_queue *q = rqos->disk->queue;
750750
const char *dir_name = rq_qos_id_to_name(rqos->id);

block/blk-mq-debugfs.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ void blk_mq_debugfs_register_sched_hctx(struct request_queue *q,
3434
void blk_mq_debugfs_unregister_sched_hctx(struct blk_mq_hw_ctx *hctx);
3535

3636
void blk_mq_debugfs_register_rq_qos(struct request_queue *q);
37-
void blk_mq_debugfs_register_rqos(struct rq_qos *rqos);
3837
void blk_mq_debugfs_unregister_rqos(struct rq_qos *rqos);
3938
#else
4039
static inline void blk_mq_debugfs_register(struct request_queue *q)
@@ -75,10 +74,6 @@ static inline void blk_mq_debugfs_unregister_sched_hctx(struct blk_mq_hw_ctx *hc
7574
{
7675
}
7776

78-
static inline void blk_mq_debugfs_register_rqos(struct rq_qos *rqos)
79-
{
80-
}
81-
8277
static inline void blk_mq_debugfs_register_rq_qos(struct request_queue *q)
8378
{
8479
}

0 commit comments

Comments
 (0)