diff options
author | Sven Eckelmann <sven@narfation.org> | 2018-08-10 23:36:15 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2018-09-14 10:50:26 +0200 |
commit | 00caf6a2b3187d28906a05c48a210961ab75f6b2 (patch) | |
tree | 1bdda71d9c92541241231f062340b471ceea777a /net/batman-adv/log.c | |
parent | 138c72efbd5dbb8b5b9cacb51523943576410fc1 (diff) | |
download | linux-00caf6a2b3187d28906a05c48a210961ab75f6b2.tar.bz2 |
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/log.c')
-rw-r--r-- | net/batman-adv/log.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/batman-adv/log.c b/net/batman-adv/log.c index 853773e45f79..1032d84e21ae 100644 --- a/net/batman-adv/log.c +++ b/net/batman-adv/log.c @@ -40,6 +40,8 @@ #include <linux/wait.h> #include <stdarg.h> +#include "debugfs.h" + #define BATADV_LOG_BUFF_MASK (batadv_log_buff_len - 1) static const int batadv_log_buff_len = BATADV_LOG_BUF_LEN; @@ -115,6 +117,8 @@ static int batadv_log_open(struct inode *inode, struct file *file) if (!try_module_get(THIS_MODULE)) return -EBUSY; + batadv_debugfs_deprecated(file, ""); + nonseekable_open(inode, file); file->private_data = inode->i_private; return 0; |