diff mbox

[2/2] ipv6: Fix build error with udp_offload

Message ID 1353033337-2772-1-git-send-email-vyasevic@redhat.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Vlad Yasevich Nov. 16, 2012, 2:35 a.m. UTC
Add ip6_checksum.h include.  This should resolve the following issue
that shows up on power:

net/ipv6/udp_offload.c: In function 'udp6_ufo_send_check':
net/ipv6/udp_offload.c:29:2: error: implicit declaration of function
'csum_ipv6_magic' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
---
 net/ipv6/udp_offload.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Comments

David Miller Nov. 16, 2012, 3:49 a.m. UTC | #1
From: Vlad Yasevich <vyasevic@redhat.com>
Date: Thu, 15 Nov 2012 21:35:37 -0500

> Add ip6_checksum.h include.  This should resolve the following issue
> that shows up on power:
> 
> net/ipv6/udp_offload.c: In function 'udp6_ufo_send_check':
> net/ipv6/udp_offload.c:29:2: error: implicit declaration of function
> 'csum_ipv6_magic' [-Werror=implicit-function-declaration]
> cc1: some warnings being treated as errors
> 
> Signed-off-by: Vlad Yasevich <vyasevic@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
diff mbox

Patch

diff --git a/net/ipv6/udp_offload.c b/net/ipv6/udp_offload.c
index 8e01c44..0c8934a 100644
--- a/net/ipv6/udp_offload.c
+++ b/net/ipv6/udp_offload.c
@@ -13,6 +13,7 @@ 
 #include <net/protocol.h>
 #include <net/ipv6.h>
 #include <net/udp.h>
+#include <net/ip6_checksum.h>
 #include "ip6_offload.h"
 
 static int udp6_ufo_send_check(struct sk_buff *skb)