Commit 87faf3ccf1c939938600ab57c6c9ed5bd2e5f4cc

Authored by David S. Miller
1 parent 32dec5dd02

bridge: Make first arg to deliver_clone const.

Otherwise we get a warning from the call in br_forward().

Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff

net/bridge/br_forward.c
... ... @@ -19,7 +19,8 @@
19 19 #include <linux/netfilter_bridge.h>
20 20 #include "br_private.h"
21 21  
22   -static int deliver_clone(struct net_bridge_port *prev, struct sk_buff *skb,
  22 +static int deliver_clone(const struct net_bridge_port *prev,
  23 + struct sk_buff *skb,
23 24 void (*__packet_hook)(const struct net_bridge_port *p,
24 25 struct sk_buff *skb));
25 26  
... ... @@ -112,7 +113,8 @@
112 113 kfree_skb(skb);
113 114 }
114 115  
115   -static int deliver_clone(struct net_bridge_port *prev, struct sk_buff *skb,
  116 +static int deliver_clone(const struct net_bridge_port *prev,
  117 + struct sk_buff *skb,
116 118 void (*__packet_hook)(const struct net_bridge_port *p,
117 119 struct sk_buff *skb))
118 120 {