93c68cc46a
DRBD currently has a mix of GPL-2.0 and GPL-2.0-or-later SPDX license identifiers. We have decided to stick with GPL 2.0 only, so consistently use that identifier. Signed-off-by: Christoph Böhmwalder <christoph.boehmwalder@linbit.com> Link: https://lore.kernel.org/r/20221122134301.69258-5-christoph.boehmwalder@linbit.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
41 lines
1.6 KiB
C
41 lines
1.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#include <linux/kernel.h>
|
|
#include <linux/module.h>
|
|
#include <linux/debugfs.h>
|
|
|
|
#include "drbd_int.h"
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
void __init drbd_debugfs_init(void);
|
|
void drbd_debugfs_cleanup(void);
|
|
|
|
void drbd_debugfs_resource_add(struct drbd_resource *resource);
|
|
void drbd_debugfs_resource_cleanup(struct drbd_resource *resource);
|
|
|
|
void drbd_debugfs_connection_add(struct drbd_connection *connection);
|
|
void drbd_debugfs_connection_cleanup(struct drbd_connection *connection);
|
|
|
|
void drbd_debugfs_device_add(struct drbd_device *device);
|
|
void drbd_debugfs_device_cleanup(struct drbd_device *device);
|
|
|
|
void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device);
|
|
void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device);
|
|
#else
|
|
|
|
static inline void __init drbd_debugfs_init(void) { }
|
|
static inline void drbd_debugfs_cleanup(void) { }
|
|
|
|
static inline void drbd_debugfs_resource_add(struct drbd_resource *resource) { }
|
|
static inline void drbd_debugfs_resource_cleanup(struct drbd_resource *resource) { }
|
|
|
|
static inline void drbd_debugfs_connection_add(struct drbd_connection *connection) { }
|
|
static inline void drbd_debugfs_connection_cleanup(struct drbd_connection *connection) { }
|
|
|
|
static inline void drbd_debugfs_device_add(struct drbd_device *device) { }
|
|
static inline void drbd_debugfs_device_cleanup(struct drbd_device *device) { }
|
|
|
|
static inline void drbd_debugfs_peer_device_add(struct drbd_peer_device *peer_device) { }
|
|
static inline void drbd_debugfs_peer_device_cleanup(struct drbd_peer_device *peer_device) { }
|
|
|
|
#endif
|