Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / drivers / block / drbd / drbd_debugfs.h
blob4ecfbb3358d799c2a1a82445d60da09064f56561
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #include <linux/kernel.h>
3 #include <linux/module.h>
4 #include <linux/debugfs.h>
6 #include "drbd_int.h"
8 #ifdef CONFIG_DEBUG_FS
9 int __init drbd_debugfs_init(void);
10 void drbd_debugfs_cleanup(void);
12 void drbd_debugfs_resource_add(struct drbd_resource *resource);
13 void drbd_debugfs_resource_cleanup(struct drbd_resource *resource);
15 void drbd_debugfs_connection_add(struct drbd_connection *connection);
16 void drbd_debugfs_connection_cleanup(struct drbd_connection *connection);
18 void drbd_debugfs_device_add(struct drbd_device *device);
19 void drbd_debugfs_device_cleanup(struct drbd_device *device);
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
25 static inline int __init drbd_debugfs_init(void) { return -ENODEV; }
26 static inline void drbd_debugfs_cleanup(void) { }
28 static inline void drbd_debugfs_resource_add(struct drbd_resource *resource) { }
29 static inline void drbd_debugfs_resource_cleanup(struct drbd_resource *resource) { }
31 static inline void drbd_debugfs_connection_add(struct drbd_connection *connection) { }
32 static inline void drbd_debugfs_connection_cleanup(struct drbd_connection *connection) { }
34 static inline void drbd_debugfs_device_add(struct drbd_device *device) { }
35 static inline void drbd_debugfs_device_cleanup(struct drbd_device *device) { }
37 static inline void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device) { }
38 static inline void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device) { }
40 #endif