]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
batman-adv: Remove declaration of batman_skb_recv
authorSven Eckelmann <sven@narfation.org>
Thu, 27 Jan 2011 12:16:08 +0000 (13:16 +0100)
committerSven Eckelmann <sven@narfation.org>
Mon, 31 Jan 2011 13:57:11 +0000 (14:57 +0100)
batman_skb_recv can be defined in hard-interface.c as static because it is
never used outside of that file.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/hard-interface.c
net/batman-adv/hard-interface.h

index 4f95777ce0803d79cdbcb285b92efcb77b77fb53..8a9cf7a81e79e11180b974e065bed37d183c3eb1 100644 (file)
 /* 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;
index 30ec3b8db45983d31e70be621a78fc7c21c133a0..a42f5a461d9fbf78fc56bdba377017310ce0a53c 100644 (file)
@@ -35,10 +35,6 @@ struct batman_if *get_batman_if_by_netdev(struct net_device *net_dev);
 int hardif_enable_interface(struct batman_if *batman_if, char *iface_name);
 void hardif_disable_interface(struct batman_if *batman_if);
 void hardif_remove_interfaces(void);
-int batman_skb_recv(struct sk_buff *skb,
-                               struct net_device *dev,
-                               struct packet_type *ptype,
-                               struct net_device *orig_dev);
 int hardif_min_mtu(struct net_device *soft_iface);
 void update_min_mtu(struct net_device *soft_iface);