Skip to contentSkip to conversation

batman-adv: Add missing forward declaration for net_device

PATCH Applied Sven Eckelmann 2 participants 2 messages Nov 21, 2015 – Nov 22, 2015 Batman advanced

lore
Share & tools
lore

Sven Eckelmann

author maintainer
#0 lore raw

PATCH 1/1 batman-adv: Add missing forward declaration for net_device

A new function batadv_bla_status_update was introduced which uses the not yet defined struct net_device as parameter. Add the forward declaration to avoid compiler warnings about type declarations inside parameter list.

Fixes 07ed3c31d795 ("batman-adv: purge bridge loop avoidance when its disabled")
---
 net/batman-adv/bridge_loop_avoidance.h | 1 +
 1 file changed, 1 insertion(+)
net/batman-adv/bridge_loop_avoidance.h +1 -0
index db1aeb5..7ea199b 100644
@@ -22,6 +22,7 @@
 
 #include <linux/types.h>
 
+struct net_device;
 struct seq_file;
 struct sk_buff;
 
Signature · 1 line
2.6.2
#1 lore raw
Quoted 9 lines · On Sunday, November 22, 2015 00:59:30 Sven Eckelmann wrote:

A new function batadv_bla_status_update was introduced which uses the not yet defined struct net_device as parameter. Add the forward declaration to avoid compiler warnings about type declarations inside parameter list.

Fixes 07ed3c31d795 ("batman-adv: purge bridge loop avoidance when its

disabled") Signed-off-by: Sven Eckelmann <[email protected]>

---
 net/batman-adv/bridge_loop_avoidance.h | 1 +
 1 file changed, 1 insertion(+)

Applied in revision 5b0b10e.

Thanks,
Marek