OSDN Git Service

ipv4: tunnel: fix compilation on ARCH=um
authorJohannes Berg <johannes.berg@intel.com>
Wed, 12 Aug 2020 19:08:53 +0000 (21:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Aug 2020 19:57:51 +0000 (12:57 -0700)
With certain configurations, a 64-bit ARCH=um errors
out here with an unknown csum_ipv6_magic() function.
Include the right header file to always have it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel_core.c

index 75c6013..5cb30b7 100644 (file)
@@ -38,6 +38,7 @@
 #include <net/geneve.h>
 #include <net/vxlan.h>
 #include <net/erspan.h>
+#include <net/ip6_checksum.h>
 
 const struct ip_tunnel_encap_ops __rcu *
                iptun_encaps[MAX_IPTUN_ENCAP_OPS] __read_mostly;