summaryrefslogtreecommitdiff
path: root/net/batman-adv/debugfs.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2018-08-10 23:36:15 +0200
committerSimon Wunderlich <sw@simonwunderlich.de>2018-09-14 10:50:26 +0200
commit00caf6a2b3187d28906a05c48a210961ab75f6b2 (patch)
tree1bdda71d9c92541241231f062340b471ceea777a /net/batman-adv/debugfs.h
parent138c72efbd5dbb8b5b9cacb51523943576410fc1 (diff)
batman-adv: Mark debugfs functionality as deprecated
CONFIG_BATMAN_ADV_DEBUGFS is disabled by default because debugfs is not supported for batman-adv interfaces in any non-default netns. Any remaining users of this interface should still be informed about the deprecation and the generic netlink alternative. Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Diffstat (limited to 'net/batman-adv/debugfs.h')
-rw-r--r--net/batman-adv/debugfs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/batman-adv/debugfs.h b/net/batman-adv/debugfs.h
index 08a592ffbee5..8de018e5c577 100644
--- a/net/batman-adv/debugfs.h
+++ b/net/batman-adv/debugfs.h
@@ -21,12 +21,14 @@
#include "main.h"
+struct file;
struct net_device;
#define BATADV_DEBUGFS_SUBDIR "batman_adv"
#if IS_ENABLED(CONFIG_BATMAN_ADV_DEBUGFS)
+void batadv_debugfs_deprecated(struct file *file, const char *alt);
void batadv_debugfs_init(void);
void batadv_debugfs_destroy(void);
int batadv_debugfs_add_meshif(struct net_device *dev);
@@ -38,6 +40,10 @@ void batadv_debugfs_del_hardif(struct batadv_hard_iface *hard_iface);
#else
+static inline void batadv_debugfs_deprecated(struct file *file, const char *alt)
+{
+}
+
static inline void batadv_debugfs_init(void)
{
}