bridge: Make first arg to deliver_clone const.
Subsystems (3)
PATCH 1/1 bridge: Make first arg to deliver_clone const.
This fixes a warning generated by one of the bug fixes I added yesterday.
Applied to net-2.6
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 <[email protected]>
--- net/bridge/br_forward.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
net/bridge/br_forward.c +4 -2
@@ -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 skkfree_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)) {
Signature · 1 line
1.6.6.1