Commit 87faf3cc authored by David S. Miller's avatar David S. Miller

bridge: Make first arg to deliver_clone const.

Otherwise we get a warning from the call in br_forward().
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 32dec5dd
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
#include <linux/netfilter_bridge.h> #include <linux/netfilter_bridge.h>
#include "br_private.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, void (*__packet_hook)(const struct net_bridge_port *p,
struct sk_buff *skb)); struct sk_buff *skb));
...@@ -112,7 +113,8 @@ void br_forward(const struct net_bridge_port *to, struct sk_buff *skb, struct sk ...@@ -112,7 +113,8 @@ void br_forward(const struct net_bridge_port *to, struct sk_buff *skb, struct sk
kfree_skb(skb); 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, void (*__packet_hook)(const struct net_bridge_port *p,
struct sk_buff *skb)) struct sk_buff *skb))
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment