1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #include <linux/kernel.h> 3 #include <linux/module.h> 4 #include <linux/debugfs.h> 5 6 #include "drbd_int.h" 7 8 #ifdef CONFIG_DEBUG_FS 9 void __init drbd_debugfs_init(void); 10 void drbd_debugfs_cleanup(void); 11 12 void drbd_debugfs_resource_add(struct drbd_resource *resource); 13 void drbd_debugfs_resource_cleanup(struct drbd_resource *resource); 14 15 void drbd_debugfs_connection_add(struct drbd_connection *connection); 16 void drbd_debugfs_connection_cleanup(struct drbd_connection *connection); 17 18 void drbd_debugfs_device_add(struct drbd_device *device); 19 void drbd_debugfs_device_cleanup(struct drbd_device *device); 20 21 void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device); 22 void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device); 23 #else 24 drbd_debugfs_init(void)25static inline void __init drbd_debugfs_init(void) { } drbd_debugfs_cleanup(void)26static inline void drbd_debugfs_cleanup(void) { } 27 drbd_debugfs_resource_add(struct drbd_resource * resource)28static inline void drbd_debugfs_resource_add(struct drbd_resource *resource) { } drbd_debugfs_resource_cleanup(struct drbd_resource * resource)29static inline void drbd_debugfs_resource_cleanup(struct drbd_resource *resource) { } 30 drbd_debugfs_connection_add(struct drbd_connection * connection)31static inline void drbd_debugfs_connection_add(struct drbd_connection *connection) { } drbd_debugfs_connection_cleanup(struct drbd_connection * connection)32static inline void drbd_debugfs_connection_cleanup(struct drbd_connection *connection) { } 33 drbd_debugfs_device_add(struct drbd_device * device)34static inline void drbd_debugfs_device_add(struct drbd_device *device) { } drbd_debugfs_device_cleanup(struct drbd_device * device)35static inline void drbd_debugfs_device_cleanup(struct drbd_device *device) { } 36 drbd_debugfs_peer_device_add(struct drbd_peer_device * peer_device)37static inline void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device) { } drbd_debugfs_peer_device_cleanup(struct drbd_peer_device * peer_device)38static inline void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device) { } 39 40 #endif 41