hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/net/batman-adv/network-coding.h
....@@ -1,19 +1,7 @@
11 /* 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:
33 *
44 * 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/>.
175 */
186
197 #ifndef _NET_BATMAN_ADV_NETWORK_CODING_H_
....@@ -21,12 +9,11 @@
219
2210 #include "main.h"
2311
12
+#include <linux/netdevice.h>
13
+#include <linux/seq_file.h>
14
+#include <linux/skbuff.h>
2415 #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>
3017
3118 #ifdef CONFIG_BATMAN_ADV_NC
3219
....@@ -52,7 +39,7 @@
5239 void batadv_nc_skb_store_sniffed_unicast(struct batadv_priv *bat_priv,
5340 struct sk_buff *skb);
5441 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);
5643
5744 #else /* ifdef CONFIG_BATMAN_ADV_NC */
5845
....@@ -123,9 +110,8 @@
123110 return 0;
124111 }
125112
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)
127114 {
128
- return 0;
129115 }
130116
131117 #endif /* ifdef CONFIG_BATMAN_ADV_NC */