[PATCH] net/ipv6/tcp_ipv6.c: fix sparse warnings

From: H Hartley Sweeten
Date: Wed Apr 22 2009 - 20:36:37 EST


Fix the following sparse warnings in net/ipv6/tcp_ipv6.c.

warning: symbol 'tcp6_gro_receive' was not declared. Should it be static?
warning: symbol 'tcp6_gro_complete' was not declared. Should it be static?

Both symbols are exported but not referenced anywhere outside of
this source file. Remove the exports and make the functions static.

Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx>

---

diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
index 4b5aa18..d391555 100644
--- a/net/ipv6/tcp_ipv6.c
+++ b/net/ipv6/tcp_ipv6.c
@@ -941,7 +941,7 @@ static int tcp_v6_gso_send_check(struct sk_buff *skb)
return 0;
}

-struct sk_buff **tcp6_gro_receive(struct sk_buff **head, struct sk_buff *skb)
+static struct sk_buff **tcp6_gro_receive(struct sk_buff **head, struct sk_buff *skb)
{
struct ipv6hdr *iph = ipv6_hdr(skb);

@@ -961,9 +961,8 @@ struct sk_buff **tcp6_gro_receive(struct sk_buff **head, struct sk_buff *skb)

return tcp_gro_receive(head, skb);
}
-EXPORT_SYMBOL(tcp6_gro_receive);

-int tcp6_gro_complete(struct sk_buff *skb)
+static int tcp6_gro_complete(struct sk_buff *skb)
{
struct ipv6hdr *iph = ipv6_hdr(skb);
struct tcphdr *th = tcp_hdr(skb);
@@ -974,7 +973,6 @@ int tcp6_gro_complete(struct sk_buff *skb)

return tcp_gro_complete(skb);
}
-EXPORT_SYMBOL(tcp6_gro_complete);

static void tcp_v6_send_response(struct sk_buff *skb, u32 seq, u32 ack, u32 win,
u32 ts, struct tcp_md5sig_key *key, int rst)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/