Skip to contentSkip to conversation

netvsc: Add #include's for csum_* function declarations

PATCH Applied Michael Kelley 3 participants 5 messages May 30, 2017 – May 31, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netvsc: Add #include's for csum_* function declarations

Add direct #include statements for declarations of csum_tcpudp_magic() and csum_ipv6_magic(). While the needed #include's are picked up indirectly for the x86 architecture, they aren't on other architectures, resulting in compile errors.

---
 drivers/net/hyperv/netvsc_drv.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/hyperv/netvsc_drv.c +2 -0
index 4421a6d..ca952b3 100644
@@ -37,6 +37,8 @@
 #include <net/route.h>
 #include <net/sock.h>
 #include <net/pkt_sched.h>
+#include <asm/checksum.h>
+#include <net/ip6_checksum.h>
 
 #include "hyperv_net.h"
 
Signature · 1 line
1.7.1
#1 lore raw
Quoted 4 lines · Michael Kelley

Add direct #include statements for declarations of csum_tcpudp_magic() and csum_ipv6_magic(). While the needed #include's are picked up indirectly for the x86 architecture, they aren't on other architectures, resulting in compile errors.

[]

drivers/net/hyperv/netvsc_drv.c line 40

Quoted 9 lines
drivers/net/hyperv/netvsc_drv.c +1 -0
index 4421a6d..ca952b3 100644
@@ -37,6 +37,8 @@
 #include <net/route.h>
 #include <net/sock.h>
 #include <net/pkt_sched.h>
+#include <asm/checksum.h>

Maybe
#include <net/checksum.h>
instead?

Quoted 4 lines
drivers/net/hyperv/netvsc_drv.c +1 -0
+#include <net/ip6_checksum.h>
 
 #include "hyperv_net.h"
 
#3 lore raw
Quoted 11 lines · David Miller

From: Michael Kelley <[email protected]>
Date: Tue, 30 May 2017 10:43:04 -0700

Quoted 6 lines

Add direct #include statements for declarations of csum_tcpudp_magic() and csum_ipv6_magic(). While the needed #include's are picked up indirectly for the x86 architecture, they aren't on other architectures, resulting in compile errors.

Applied, thank you.

Did you apply this one or the v2?

maintainer
#4 lore raw

From: Joe Perches <[email protected]>
Date: Wed, 31 May 2017 15:59:31 -0700

Quoted 9 lines · David Miller
Quoted 8 lines

From: Michael Kelley <[email protected]>
Date: Tue, 30 May 2017 10:43:04 -0700

Quoted 5 lines

Add direct #include statements for declarations of csum_tcpudp_magic() and csum_ipv6_magic(). While the needed #include's are picked up indirectly for the x86 architecture, they aren't on other architectures, resulting in compile errors.

Quoted 5 lines
Quoted 3 lines
Quoted 1 line

Applied, thank you.

Did you apply this one or the v2?

I got v2 which used net/checksum.h et al.