]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - lib/checksum.c
lib/checksum.c: make do_csum optional
[mirror_ubuntu-bionic-kernel.git] / lib / checksum.c
index 886b48db4f28861cbaf65065d641b00fbb2ee99a..b08c2d059024d01fa7ac3b1408d4ed8f22649cf0 100644 (file)
@@ -37,6 +37,7 @@
 
 #include <asm/byteorder.h>
 
+#ifndef do_csum
 static inline unsigned short from32to16(unsigned int x)
 {
        /* add up 16-bit and 16-bit for 16+c bit */
@@ -102,6 +103,7 @@ static unsigned int do_csum(const unsigned char *buff, int len)
 out:
        return result;
 }
+#endif
 
 /*
  *     This is a version of ip_compute_csum() optimized for IP headers,