18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#include <linux/kernel.h> 38c2ecf20Sopenharmony_ci#include <linux/module.h> 48c2ecf20Sopenharmony_ci#include <linux/debugfs.h> 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#include "drbd_int.h" 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifdef CONFIG_DEBUG_FS 98c2ecf20Sopenharmony_civoid __init drbd_debugfs_init(void); 108c2ecf20Sopenharmony_civoid drbd_debugfs_cleanup(void); 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_civoid drbd_debugfs_resource_add(struct drbd_resource *resource); 138c2ecf20Sopenharmony_civoid drbd_debugfs_resource_cleanup(struct drbd_resource *resource); 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_civoid drbd_debugfs_connection_add(struct drbd_connection *connection); 168c2ecf20Sopenharmony_civoid drbd_debugfs_connection_cleanup(struct drbd_connection *connection); 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_civoid drbd_debugfs_device_add(struct drbd_device *device); 198c2ecf20Sopenharmony_civoid drbd_debugfs_device_cleanup(struct drbd_device *device); 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_civoid drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device); 228c2ecf20Sopenharmony_civoid drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device); 238c2ecf20Sopenharmony_ci#else 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_cistatic inline void __init drbd_debugfs_init(void) { } 268c2ecf20Sopenharmony_cistatic inline void drbd_debugfs_cleanup(void) { } 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_cistatic inline void drbd_debugfs_resource_add(struct drbd_resource *resource) { } 298c2ecf20Sopenharmony_cistatic inline void drbd_debugfs_resource_cleanup(struct drbd_resource *resource) { } 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_cistatic inline void drbd_debugfs_connection_add(struct drbd_connection *connection) { } 328c2ecf20Sopenharmony_cistatic inline void drbd_debugfs_connection_cleanup(struct drbd_connection *connection) { } 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_cistatic inline void drbd_debugfs_device_add(struct drbd_device *device) { } 358c2ecf20Sopenharmony_cistatic inline void drbd_debugfs_device_cleanup(struct drbd_device *device) { } 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_cistatic inline void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device) { } 388c2ecf20Sopenharmony_cistatic inline void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device) { } 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci#endif 41