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>
This commit is contained in:

committed by
Simon Wunderlich

parent
138c72efbd
commit
00caf6a2b3
@@ -47,6 +47,7 @@
|
||||
#include <linux/wait.h>
|
||||
#include <uapi/linux/batadv_packet.h>
|
||||
|
||||
#include "debugfs.h"
|
||||
#include "hard-interface.h"
|
||||
#include "log.h"
|
||||
#include "originator.h"
|
||||
@@ -74,6 +75,8 @@ static int batadv_socket_open(struct inode *inode, struct file *file)
|
||||
if (!try_module_get(THIS_MODULE))
|
||||
return -EBUSY;
|
||||
|
||||
batadv_debugfs_deprecated(file, "");
|
||||
|
||||
nonseekable_open(inode, file);
|
||||
|
||||
socket_client = kmalloc(sizeof(*socket_client), GFP_KERNEL);
|
||||
|
Reference in New Issue
Block a user