Patchwork [net-next] vxlan: include net/ip6_checksum.h for csum_ipv6_magic()

login
register
mail settings
Submitter Amerigo Wang
Date Sept. 2, 2013, 2:06 a.m.
Message ID <1378087613-15279-2-git-send-email-amwang@redhat.com>
Download mbox | patch
Permalink /patch/271664/
State Accepted
Delegated to: David Miller
Headers show

Comments

Amerigo Wang - Sept. 2, 2013, 2:06 a.m.
From: Cong Wang <amwang@redhat.com>

Fengguang reported a compile warning:

   drivers/net/vxlan.c: In function 'vxlan6_xmit_skb':
   drivers/net/vxlan.c:1352:3: error: implicit declaration of function 'csum_ipv6_magic' [-Werror=implicit-function-declaration]
   cc1: some warnings being treated as errors

this patch fixes it.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Cong Wang <amwang@redhat.com>
---
 drivers/net/vxlan.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
David Miller - Sept. 3, 2013, 4:01 a.m.
From: Cong Wang <amwang@redhat.com>
Date: Mon,  2 Sep 2013 10:06:52 +0800

> From: Cong Wang <amwang@redhat.com>
> 
> Fengguang reported a compile warning:
> 
>    drivers/net/vxlan.c: In function 'vxlan6_xmit_skb':
>    drivers/net/vxlan.c:1352:3: error: implicit declaration of function 'csum_ipv6_magic' [-Werror=implicit-function-declaration]
>    cc1: some warnings being treated as errors
> 
> this patch fixes it.
> 
> Reported-by: kbuild test robot <fengguang.wu@intel.com>
> 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/drivers/net/vxlan.c b/drivers/net/vxlan.c
index 0fcf3f7..6b560f3 100644
--- a/drivers/net/vxlan.c
+++ b/drivers/net/vxlan.c
@@ -44,6 +44,7 @@ 
 #include <net/ipv6.h>
 #include <net/addrconf.h>
 #include <net/ip6_tunnel.h>
+#include <net/ip6_checksum.h>
 #endif
 
 #define VXLAN_VERSION	"0.1"