bridge: Make first arg to deliver_clone const.
authorDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2010 21:37:47 +0000 (14:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Mar 2010 21:37:47 +0000 (14:37 -0700)
Otherwise we get a warning from the call in br_forward().

Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_forward.c

index 8347916efe88544b50f27a440ca975065a189e0e..8dbec83e50ca2cd8b43fe466e578a68d6eb7c7b2 100644 (file)
@@ -19,7 +19,8 @@
 #include <linux/netfilter_bridge.h>
 #include "br_private.h"
 
-static int deliver_clone(struct net_bridge_port *prev, struct sk_buff *skb,
+static int deliver_clone(const struct net_bridge_port *prev,
+                        struct sk_buff *skb,
                         void (*__packet_hook)(const struct net_bridge_port *p,
                                               struct sk_buff *skb));
 
@@ -112,7 +113,8 @@ void br_forward(const struct net_bridge_port *to, struct sk_buff *skb, struct sk
                kfree_skb(skb);
 }
 
-static int deliver_clone(struct net_bridge_port *prev, struct sk_buff *skb,
+static int deliver_clone(const struct net_bridge_port *prev,
+                        struct sk_buff *skb,
                         void (*__packet_hook)(const struct net_bridge_port *p,
                                               struct sk_buff *skb))
 {