Omar Sandoval | d173a25 | 2017-05-04 00:31:30 -0700 | [diff] [blame] | 1 | #ifndef INT_BLK_MQ_DEBUGFS_H |
| 2 | #define INT_BLK_MQ_DEBUGFS_H |
| 3 | |
| 4 | #ifdef CONFIG_BLK_DEBUG_FS |
| 5 | int blk_mq_debugfs_register(struct request_queue *q); |
| 6 | void blk_mq_debugfs_unregister(struct request_queue *q); |
Omar Sandoval | 9c1051a | 2017-05-04 08:17:21 -0600 | [diff] [blame^] | 7 | int blk_mq_debugfs_register_hctx(struct request_queue *q, |
| 8 | struct blk_mq_hw_ctx *hctx); |
| 9 | void blk_mq_debugfs_unregister_hctx(struct blk_mq_hw_ctx *hctx); |
| 10 | int blk_mq_debugfs_register_hctxs(struct request_queue *q); |
| 11 | void blk_mq_debugfs_unregister_hctxs(struct request_queue *q); |
Omar Sandoval | d173a25 | 2017-05-04 00:31:30 -0700 | [diff] [blame] | 12 | #else |
| 13 | static inline int blk_mq_debugfs_register(struct request_queue *q) |
| 14 | { |
| 15 | return 0; |
| 16 | } |
| 17 | |
| 18 | static inline void blk_mq_debugfs_unregister(struct request_queue *q) |
| 19 | { |
| 20 | } |
| 21 | |
Omar Sandoval | 9c1051a | 2017-05-04 08:17:21 -0600 | [diff] [blame^] | 22 | static inline int blk_mq_debugfs_register_hctx(struct request_queue *q, |
| 23 | struct blk_mq_hw_ctx *hctx) |
Omar Sandoval | d173a25 | 2017-05-04 00:31:30 -0700 | [diff] [blame] | 24 | { |
| 25 | return 0; |
| 26 | } |
| 27 | |
Omar Sandoval | 9c1051a | 2017-05-04 08:17:21 -0600 | [diff] [blame^] | 28 | static inline void blk_mq_debugfs_unregister_hctx(struct blk_mq_hw_ctx *hctx) |
| 29 | { |
| 30 | } |
| 31 | |
| 32 | static inline int blk_mq_debugfs_register_hctxs(struct request_queue *q) |
| 33 | { |
| 34 | return 0; |
| 35 | } |
| 36 | |
| 37 | static inline void blk_mq_debugfs_unregister_hctxs(struct request_queue *q) |
Omar Sandoval | d173a25 | 2017-05-04 00:31:30 -0700 | [diff] [blame] | 38 | { |
| 39 | } |
| 40 | #endif |
| 41 | |
| 42 | #endif |