pktgen: add needed include file
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 29 Jul 2013 06:21:26 +0000 (16:21 +1000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Jul 2013 07:47:14 +0000 (00:47 -0700)
Fixes this on PowerPC (at least):

net/core/pktgen.c: In function 'fill_packet_ipv6':
net/core/pktgen.c:2906:3: error: implicit declaration of function 'csum_ipv6_magic' [-Werror=implicit-function-declaration]
   udph->check = ~csum_ipv6_magic(&iph->saddr, &iph->daddr, udplen, IPPROTO_UDP, 0);
   ^

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c

index 2dec6f1b0cd7c2d1e933047df38942cac1e68c06..261357a663001ccf98a92ba5f6d0f6ad141c7ce3 100644 (file)
 #include <net/checksum.h>
 #include <net/ipv6.h>
 #include <net/udp.h>
+#include <net/ip6_checksum.h>
 #include <net/addrconf.h>
 #ifdef CONFIG_XFRM
 #include <net/xfrm.h>