blob: 596e9b16d3d1724f7ca9857c19e86320b3d8b05d [file] [log] [blame]
Omar Sandovald173a252017-05-04 00:31:30 -07001#ifndef INT_BLK_MQ_DEBUGFS_H
2#define INT_BLK_MQ_DEBUGFS_H
3
4#ifdef CONFIG_BLK_DEBUG_FS
5int blk_mq_debugfs_register(struct request_queue *q);
6void blk_mq_debugfs_unregister(struct request_queue *q);
Omar Sandoval9c1051a2017-05-04 08:17:21 -06007int blk_mq_debugfs_register_hctx(struct request_queue *q,
8 struct blk_mq_hw_ctx *hctx);
9void blk_mq_debugfs_unregister_hctx(struct blk_mq_hw_ctx *hctx);
10int blk_mq_debugfs_register_hctxs(struct request_queue *q);
11void blk_mq_debugfs_unregister_hctxs(struct request_queue *q);
Omar Sandovald173a252017-05-04 00:31:30 -070012#else
13static inline int blk_mq_debugfs_register(struct request_queue *q)
14{
15 return 0;
16}
17
18static inline void blk_mq_debugfs_unregister(struct request_queue *q)
19{
20}
21
Omar Sandoval9c1051a2017-05-04 08:17:21 -060022static inline int blk_mq_debugfs_register_hctx(struct request_queue *q,
23 struct blk_mq_hw_ctx *hctx)
Omar Sandovald173a252017-05-04 00:31:30 -070024{
25 return 0;
26}
27
Omar Sandoval9c1051a2017-05-04 08:17:21 -060028static inline void blk_mq_debugfs_unregister_hctx(struct blk_mq_hw_ctx *hctx)
29{
30}
31
32static inline int blk_mq_debugfs_register_hctxs(struct request_queue *q)
33{
34 return 0;
35}
36
37static inline void blk_mq_debugfs_unregister_hctxs(struct request_queue *q)
Omar Sandovald173a252017-05-04 00:31:30 -070038{
39}
40#endif
41
42#endif