Patchwork [net-next] ipv6: remove duplicated declaration of ip6_fragment()

login
register
mail settings
Submitter Amerigo Wang
Date Jan. 23, 2013, 3:22 a.m.
Message ID <1358911327-12122-1-git-send-email-amwang@redhat.com>
Download mbox | patch
Permalink /patch/214719/
State Accepted
Delegated to: David Miller
Headers show

Comments

Amerigo Wang - Jan. 23, 2013, 3:22 a.m.
From: Cong Wang <amwang@redhat.com>

It is declared in:
include/net/ip6_route.h:187:int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *));

and net/ip6_route.h is already included.

Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>

---
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - Jan. 23, 2013, 4:22 a.m.
From: Cong Wang <amwang@redhat.com>
Date: Wed, 23 Jan 2013 11:22:07 +0800

> From: Cong Wang <amwang@redhat.com>
> 
> It is declared in:
> include/net/ip6_route.h:187:int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *));
> 
> and net/ip6_route.h is already included.
> 
> Cc: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
> Cc: David S. Miller <davem@davemloft.net>
> Signed-off-by: Cong Wang <amwang@redhat.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c
index 7eee94c..7dea45a 100644
--- a/net/ipv6/ip6_output.c
+++ b/net/ipv6/ip6_output.c
@@ -56,8 +56,6 @@ 
 #include <net/checksum.h>
 #include <linux/mroute6.h>
 
-int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *));
-
 int __ip6_local_out(struct sk_buff *skb)
 {
 	int len;