162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci#include <linux/kernel.h> 362306a36Sopenharmony_ci#include <linux/module.h> 462306a36Sopenharmony_ci#include <linux/debugfs.h> 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#include "drbd_int.h" 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci#ifdef CONFIG_DEBUG_FS 962306a36Sopenharmony_civoid __init drbd_debugfs_init(void); 1062306a36Sopenharmony_civoid drbd_debugfs_cleanup(void); 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_civoid drbd_debugfs_resource_add(struct drbd_resource *resource); 1362306a36Sopenharmony_civoid drbd_debugfs_resource_cleanup(struct drbd_resource *resource); 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_civoid drbd_debugfs_connection_add(struct drbd_connection *connection); 1662306a36Sopenharmony_civoid drbd_debugfs_connection_cleanup(struct drbd_connection *connection); 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_civoid drbd_debugfs_device_add(struct drbd_device *device); 1962306a36Sopenharmony_civoid drbd_debugfs_device_cleanup(struct drbd_device *device); 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_civoid drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device); 2262306a36Sopenharmony_civoid drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device); 2362306a36Sopenharmony_ci#else 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_cistatic inline void __init drbd_debugfs_init(void) { } 2662306a36Sopenharmony_cistatic inline void drbd_debugfs_cleanup(void) { } 2762306a36Sopenharmony_ci 2862306a36Sopenharmony_cistatic inline void drbd_debugfs_resource_add(struct drbd_resource *resource) { } 2962306a36Sopenharmony_cistatic inline void drbd_debugfs_resource_cleanup(struct drbd_resource *resource) { } 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_cistatic inline void drbd_debugfs_connection_add(struct drbd_connection *connection) { } 3262306a36Sopenharmony_cistatic inline void drbd_debugfs_connection_cleanup(struct drbd_connection *connection) { } 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_cistatic inline void drbd_debugfs_device_add(struct drbd_device *device) { } 3562306a36Sopenharmony_cistatic inline void drbd_debugfs_device_cleanup(struct drbd_device *device) { } 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_cistatic inline void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device) { } 3862306a36Sopenharmony_cistatic inline void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device) { } 3962306a36Sopenharmony_ci 4062306a36Sopenharmony_ci#endif 41