Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1653434

[PATCH net-next 1/1] netvsc: Add #include's for csum_* function declarations

From Michael Kelley <mikelley@microsoft.com>
Newsgroups linux.kernel
Subject [PATCH net-next 1/1] netvsc: Add #include's for csum_* function declarations
Date 2017-05-30 19:50 +0200
Message-ID <tMTrj-1TY-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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.

Signed-off-by: Michael Kelley <mikelley@microsoft.com>
---
 drivers/net/hyperv/netvsc_drv.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/hyperv/netvsc_drv.c b/drivers/net/hyperv/netvsc_drv.c
index 4421a6d..ca952b3 100644
--- a/drivers/net/hyperv/netvsc_drv.c
+++ b/drivers/net/hyperv/netvsc_drv.c
@@ -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"
 
-- 
1.7.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH net-next 1/1] netvsc: Add #include's for csum_* function declarations Michael Kelley <mikelley@microsoft.com> - 2017-05-30 19:50 +0200
  Re: [PATCH net-next 1/1] netvsc: Add #include's for csum_* function  declarations Joe Perches <joe@perches.com> - 2017-05-30 20:10 +0200
  Re: [PATCH net-next 1/1] netvsc: Add #include's for csum_*  function declarations David Miller <davem@davemloft.net> - 2017-05-31 20:10 +0200
    Re: [PATCH net-next 1/1] netvsc: Add #include's for csum_* function  declarations Joe Perches <joe@perches.com> - 2017-06-01 01:00 +0200
      Re: [PATCH net-next 1/1] netvsc: Add #include's for csum_*  function declarations David Miller <davem@davemloft.net> - 2017-06-01 01:30 +0200

csiph-web