]> asedeno.scripts.mit.edu Git - linux.git/blob - block/blk-mq-debugfs.h
blk-mq: move debugfs declarations to a separate header file
[linux.git] / block / blk-mq-debugfs.h
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);
7 int blk_mq_debugfs_register_mq(struct request_queue *q);
8 void blk_mq_debugfs_unregister_mq(struct request_queue *q);
9 #else
10 static inline int blk_mq_debugfs_register(struct request_queue *q)
11 {
12         return 0;
13 }
14
15 static inline void blk_mq_debugfs_unregister(struct request_queue *q)
16 {
17 }
18
19 static inline int blk_mq_debugfs_register_mq(struct request_queue *q)
20 {
21         return 0;
22 }
23
24 static inline void blk_mq_debugfs_unregister_mq(struct request_queue *q)
25 {
26 }
27 #endif
28
29 #endif