]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel_core: Fix build for archs without _HAVE_ARCH_IPV6_CSUM
authorStefano Brivio <sbrivio@redhat.com>
Wed, 5 Aug 2020 13:39:31 +0000 (15:39 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Aug 2020 19:30:36 +0000 (12:30 -0700)
commit737c4a623e832c7e6dfc3e9fa32a28a0dd91ac35
tree0b4b8c7c6e617e70ae89473c0d6c34b4e918798d
parentc82f990eb19d9097f47c58549ac52fdfb72a8122
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 <sfr@canb.auug.org.au>
Fixes: 6aabe1545775 ("tunnels: PMTU discovery support for directly bridged IP packets")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel_core.c