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