Skip to content

Commit 8ed54f1

Browse files
sbrivio-rhdavem330
authored andcommitted
ip_tunnel_core: Fix build for archs without _HAVE_ARCH_IPV6_CSUM
On architectures defining _HAVE_ARCH_IPV6_CSUM, we get csum_ipv6_magic() defined by means of arch checksum.h headers. On other architectures, we actually need to include net/ip6_checksum.h to be able to use it. Without this include, building with defconfig breaks at least for s390. Reported-by: Stephen Rothwell <[email protected]> Fixes: 4cb47a8 ("tunnels: PMTU discovery support for directly bridged IP packets") Signed-off-by: Stefano Brivio <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 16f6458 commit 8ed54f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/ipv4/ip_tunnel_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <net/protocol.h>
2626
#include <net/ip_tunnels.h>
2727
#include <net/ip6_tunnel.h>
28+
#include <net/ip6_checksum.h>
2829
#include <net/arp.h>
2930
#include <net/checksum.h>
3031
#include <net/dsfield.h>

0 commit comments

Comments
 (0)