Lars Ellenberg | 4d3d5aa | 2014-05-02 13:19:51 +0200 | [diff] [blame] | 1 | #include <linux/kernel.h> |
| 2 | #include <linux/module.h> |
| 3 | #include <linux/debugfs.h> |
| 4 | |
| 5 | #include "drbd_int.h" |
| 6 | |
| 7 | #ifdef CONFIG_DEBUG_FS |
| 8 | int __init drbd_debugfs_init(void); |
| 9 | void drbd_debugfs_cleanup(void); |
| 10 | |
| 11 | void drbd_debugfs_resource_add(struct drbd_resource *resource); |
| 12 | void drbd_debugfs_resource_cleanup(struct drbd_resource *resource); |
| 13 | |
| 14 | void drbd_debugfs_connection_add(struct drbd_connection *connection); |
| 15 | void drbd_debugfs_connection_cleanup(struct drbd_connection *connection); |
| 16 | |
| 17 | void drbd_debugfs_device_add(struct drbd_device *device); |
| 18 | void drbd_debugfs_device_cleanup(struct drbd_device *device); |
| 19 | |
| 20 | void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device); |
| 21 | void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device); |
| 22 | #else |
| 23 | |
| 24 | static inline int __init drbd_debugfs_init(void) { return -ENODEV; } |
| 25 | static inline void drbd_debugfs_cleanup(void) { } |
| 26 | |
| 27 | static inline void drbd_debugfs_resource_add(struct drbd_resource *resource) { } |
| 28 | static inline void drbd_debugfs_resource_cleanup(struct drbd_resource *resource) { } |
| 29 | |
| 30 | static inline void drbd_debugfs_connection_add(struct drbd_connection *connection) { } |
| 31 | static inline void drbd_debugfs_connection_cleanup(struct drbd_connection *connection) { } |
| 32 | |
| 33 | static inline void drbd_debugfs_device_add(struct drbd_device *device) { } |
| 34 | static inline void drbd_debugfs_device_cleanup(struct drbd_device *device) { } |
| 35 | |
| 36 | static inline void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device) { } |
| 37 | static inline void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device) { } |
| 38 | |
| 39 | #endif |