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