| .. | .. |
|---|
| 1 | 1 | /* 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: |
|---|
| 3 | 3 | * |
|---|
| 4 | 4 | * 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/>. |
|---|
| 17 | 5 | */ |
|---|
| 18 | 6 | |
|---|
| 19 | 7 | #ifndef _NET_BATMAN_ADV_DEBUGFS_H_ |
|---|
| .. | .. |
|---|
| 21 | 9 | |
|---|
| 22 | 10 | #include "main.h" |
|---|
| 23 | 11 | |
|---|
| 24 | | -struct net_device; |
|---|
| 12 | +#include <linux/fs.h> |
|---|
| 13 | +#include <linux/netdevice.h> |
|---|
| 25 | 14 | |
|---|
| 26 | 15 | #define BATADV_DEBUGFS_SUBDIR "batman_adv" |
|---|
| 27 | 16 | |
|---|
| 28 | 17 | #if IS_ENABLED(CONFIG_BATMAN_ADV_DEBUGFS) |
|---|
| 29 | 18 | |
|---|
| 19 | +void batadv_debugfs_deprecated(struct file *file, const char *alt); |
|---|
| 30 | 20 | void batadv_debugfs_init(void); |
|---|
| 31 | 21 | void batadv_debugfs_destroy(void); |
|---|
| 32 | 22 | int batadv_debugfs_add_meshif(struct net_device *dev); |
|---|
| 33 | 23 | void batadv_debugfs_rename_meshif(struct net_device *dev); |
|---|
| 34 | 24 | 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); |
|---|
| 36 | 26 | void batadv_debugfs_rename_hardif(struct batadv_hard_iface *hard_iface); |
|---|
| 37 | 27 | void batadv_debugfs_del_hardif(struct batadv_hard_iface *hard_iface); |
|---|
| 38 | 28 | |
|---|
| 39 | 29 | #else |
|---|
| 30 | + |
|---|
| 31 | +static inline void batadv_debugfs_deprecated(struct file *file, const char *alt) |
|---|
| 32 | +{ |
|---|
| 33 | +} |
|---|
| 40 | 34 | |
|---|
| 41 | 35 | static inline void batadv_debugfs_init(void) |
|---|
| 42 | 36 | { |
|---|
| .. | .. |
|---|
| 60 | 54 | } |
|---|
| 61 | 55 | |
|---|
| 62 | 56 | 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) |
|---|
| 64 | 58 | { |
|---|
| 65 | | - return 0; |
|---|
| 66 | 59 | } |
|---|
| 67 | 60 | |
|---|
| 68 | 61 | static inline |
|---|