From 87147a32c119fb9e9c1c61a8d77316f2ebd8df7b Mon Sep 17 00:00:00 2001 From: Jarno Rajahalme Date: Wed, 11 Dec 2013 11:20:00 -0800 Subject: [PATCH] datapath: Fix sparse warning. Make the new compat function skb_flow_get_ports() static to silence a sparse warning. Signed-off-by: Jarno Rajahalme Acked-by: Pravin B Shelar --- datapath/linux/compat/flow_dissector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datapath/linux/compat/flow_dissector.c b/datapath/linux/compat/flow_dissector.c index 7a0d09b98..a8a2e5233 100644 --- a/datapath/linux/compat/flow_dissector.c +++ b/datapath/linux/compat/flow_dissector.c @@ -46,7 +46,7 @@ static void iph_to_flow_copy_addrs(struct flow_keys *flow, const struct iphdr *i memcpy(&flow->src, &iph->saddr, sizeof(flow->src) + sizeof(flow->dst)); } -__be32 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto) +static __be32 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto) { int poff = proto_ports_offset(ip_proto); -- 2.43.0