]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - lib/checksum.c
asm-generic headers: Allow yet more arch overrides in checksum.h
[mirror_ubuntu-artful-kernel.git] / lib / checksum.c
index 12dceb27ff20cb39eff6fc3458390c9cccf9576f..129775eb6de63a6155cea830df17b6c2476eb024 100644 (file)
@@ -102,6 +102,7 @@ out:
 }
 #endif
 
+#ifndef ip_fast_csum
 /*
  *     This is a version of ip_compute_csum() optimized for IP headers,
  *     which always checksum on 4 octet boundaries.
@@ -111,6 +112,7 @@ __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
        return (__force __sum16)~do_csum(iph, ihl*4);
 }
 EXPORT_SYMBOL(ip_fast_csum);
+#endif
 
 /*
  * computes the checksum of a memory block at buff, length len,