aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2020-08-12 21:08:53 +0200
committerDavid S. Miller <davem@davemloft.net>2020-08-12 12:57:51 -0700
commit06a7a37be55e29961c9ba2abec4d07c8e0e21861 (patch)
treec46d70e7eabd39227afe454d89cd2589dd61b3f7
parentvsock: fix potential null pointer dereference in vsock_poll() (diff)
downloadwireguard-linux-06a7a37be55e29961c9ba2abec4d07c8e0e21861.tar.xz
wireguard-linux-06a7a37be55e29961c9ba2abec4d07c8e0e21861.zip
ipv4: tunnel: fix compilation on ARCH=um
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>
-rw-r--r--net/ipv4/ip_tunnel_core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ipv4/ip_tunnel_core.c b/net/ipv4/ip_tunnel_core.c
index 75c6013ff9a4..5cb30b7aa752 100644
--- a/net/ipv4/ip_tunnel_core.c
+++ b/net/ipv4/ip_tunnel_core.c
@@ -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;