.. | .. |
---|
1 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
---|
2 | | -/* Copyright (C) 2012-2018 B.A.T.M.A.N. contributors: |
---|
| 2 | +/* Copyright (C) 2012-2020 B.A.T.M.A.N. contributors: |
---|
3 | 3 | * |
---|
4 | 4 | * Martin Hundebøll, Jeppe Ledet-Pedersen |
---|
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_NETWORK_CODING_H_ |
---|
.. | .. |
---|
21 | 9 | |
---|
22 | 10 | #include "main.h" |
---|
23 | 11 | |
---|
| 12 | +#include <linux/netdevice.h> |
---|
| 13 | +#include <linux/seq_file.h> |
---|
| 14 | +#include <linux/skbuff.h> |
---|
24 | 15 | #include <linux/types.h> |
---|
25 | | - |
---|
26 | | -struct batadv_ogm_packet; |
---|
27 | | -struct net_device; |
---|
28 | | -struct seq_file; |
---|
29 | | -struct sk_buff; |
---|
| 16 | +#include <uapi/linux/batadv_packet.h> |
---|
30 | 17 | |
---|
31 | 18 | #ifdef CONFIG_BATMAN_ADV_NC |
---|
32 | 19 | |
---|
.. | .. |
---|
52 | 39 | void batadv_nc_skb_store_sniffed_unicast(struct batadv_priv *bat_priv, |
---|
53 | 40 | struct sk_buff *skb); |
---|
54 | 41 | int batadv_nc_nodes_seq_print_text(struct seq_file *seq, void *offset); |
---|
55 | | -int batadv_nc_init_debugfs(struct batadv_priv *bat_priv); |
---|
| 42 | +void batadv_nc_init_debugfs(struct batadv_priv *bat_priv); |
---|
56 | 43 | |
---|
57 | 44 | #else /* ifdef CONFIG_BATMAN_ADV_NC */ |
---|
58 | 45 | |
---|
.. | .. |
---|
123 | 110 | return 0; |
---|
124 | 111 | } |
---|
125 | 112 | |
---|
126 | | -static inline int batadv_nc_init_debugfs(struct batadv_priv *bat_priv) |
---|
| 113 | +static inline void batadv_nc_init_debugfs(struct batadv_priv *bat_priv) |
---|
127 | 114 | { |
---|
128 | | - return 0; |
---|
129 | 115 | } |
---|
130 | 116 | |
---|
131 | 117 | #endif /* ifdef CONFIG_BATMAN_ADV_NC */ |
---|