hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/net/batman-adv/debugfs.h
....@@ -1,19 +1,7 @@
11 /* SPDX-License-Identifier: GPL-2.0 */
2
-/* Copyright (C) 2010-2018 B.A.T.M.A.N. contributors:
2
+/* Copyright (C) 2010-2020 B.A.T.M.A.N. contributors:
33 *
44 * Marek Lindner
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of version 2 of the GNU General Public
8
- * License as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful, but
11
- * WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
175 */
186
197 #ifndef _NET_BATMAN_ADV_DEBUGFS_H_
....@@ -21,22 +9,28 @@
219
2210 #include "main.h"
2311
24
-struct net_device;
12
+#include <linux/fs.h>
13
+#include <linux/netdevice.h>
2514
2615 #define BATADV_DEBUGFS_SUBDIR "batman_adv"
2716
2817 #if IS_ENABLED(CONFIG_BATMAN_ADV_DEBUGFS)
2918
19
+void batadv_debugfs_deprecated(struct file *file, const char *alt);
3020 void batadv_debugfs_init(void);
3121 void batadv_debugfs_destroy(void);
3222 int batadv_debugfs_add_meshif(struct net_device *dev);
3323 void batadv_debugfs_rename_meshif(struct net_device *dev);
3424 void batadv_debugfs_del_meshif(struct net_device *dev);
35
-int batadv_debugfs_add_hardif(struct batadv_hard_iface *hard_iface);
25
+void batadv_debugfs_add_hardif(struct batadv_hard_iface *hard_iface);
3626 void batadv_debugfs_rename_hardif(struct batadv_hard_iface *hard_iface);
3727 void batadv_debugfs_del_hardif(struct batadv_hard_iface *hard_iface);
3828
3929 #else
30
+
31
+static inline void batadv_debugfs_deprecated(struct file *file, const char *alt)
32
+{
33
+}
4034
4135 static inline void batadv_debugfs_init(void)
4236 {
....@@ -60,9 +54,8 @@
6054 }
6155
6256 static inline
63
-int batadv_debugfs_add_hardif(struct batadv_hard_iface *hard_iface)
57
+void batadv_debugfs_add_hardif(struct batadv_hard_iface *hard_iface)
6458 {
65
- return 0;
6659 }
6760
6861 static inline