|
@@ -34,6 +34,12 @@
|
|
|
/* protect update critical side of if_list - but not the content */
|
|
|
static DEFINE_SPINLOCK(if_list_lock);
|
|
|
|
|
|
+
|
|
|
+static int batman_skb_recv(struct sk_buff *skb,
|
|
|
+ struct net_device *dev,
|
|
|
+ struct packet_type *ptype,
|
|
|
+ struct net_device *orig_dev);
|
|
|
+
|
|
|
static void hardif_free_rcu(struct rcu_head *rcu)
|
|
|
{
|
|
|
struct batman_if *batman_if;
|
|
@@ -549,8 +555,9 @@ out:
|
|
|
|
|
|
/* receive a packet with the batman ethertype coming on a hard
|
|
|
* interface */
|
|
|
-int batman_skb_recv(struct sk_buff *skb, struct net_device *dev,
|
|
|
- struct packet_type *ptype, struct net_device *orig_dev)
|
|
|
+static int batman_skb_recv(struct sk_buff *skb, struct net_device *dev,
|
|
|
+ struct packet_type *ptype,
|
|
|
+ struct net_device *orig_dev)
|
|
|
{
|
|
|
struct bat_priv *bat_priv;
|
|
|
struct batman_packet *batman_packet;
|