Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Yu Kuai and committed by
Jens Axboe
70bafa5e 3c17a346

+1 -6
+1 -1
block/blk-mq-debugfs.c
··· 744 744 rqos->debugfs_dir = NULL; 745 745 } 746 746 747 - void blk_mq_debugfs_register_rqos(struct rq_qos *rqos) 747 + static void blk_mq_debugfs_register_rqos(struct rq_qos *rqos) 748 748 { 749 749 struct request_queue *q = rqos->disk->queue; 750 750 const char *dir_name = rq_qos_id_to_name(rqos->id);
-5
block/blk-mq-debugfs.h
··· 34 34 void blk_mq_debugfs_unregister_sched_hctx(struct blk_mq_hw_ctx *hctx); 35 35 36 36 void blk_mq_debugfs_register_rq_qos(struct request_queue *q); 37 - void blk_mq_debugfs_register_rqos(struct rq_qos *rqos); 38 37 void blk_mq_debugfs_unregister_rqos(struct rq_qos *rqos); 39 38 #else 40 39 static inline void blk_mq_debugfs_register(struct request_queue *q) ··· 71 72 } 72 73 73 74 static inline void blk_mq_debugfs_unregister_sched_hctx(struct blk_mq_hw_ctx *hctx) 74 - { 75 - } 76 - 77 - static inline void blk_mq_debugfs_register_rqos(struct rq_qos *rqos) 78 75 { 79 76 } 80 77