]> Pileus Git - ~andy/linux/blobdiff - arch/m68knommu/lib/checksum.c
Merge git://git.infradead.org/iommu-2.6
[~andy/linux] / arch / m68knommu / lib / checksum.c
index 269d83bfbbe11d656ade7ab83db532869fd18ba0..eccf25d3d73ec3c5c1e84f3a7d9f9383eab157f5 100644 (file)
@@ -92,6 +92,7 @@ out:
        return result;
 }
 
+#ifdef CONFIG_COLDFIRE
 /*
  *     This is a version of ip_compute_csum() optimized for IP headers,
  *     which always checksum on 4 octet boundaries.
@@ -100,6 +101,7 @@ __sum16 ip_fast_csum(const void *iph, unsigned int ihl)
 {
        return (__force __sum16)~do_csum(iph,ihl*4);
 }
+#endif
 
 /*
  * computes the checksum of a memory block at buff, length len,
@@ -126,15 +128,6 @@ __wsum csum_partial(const void *buff, int len, __wsum sum)
 
 EXPORT_SYMBOL(csum_partial);
 
-/*
- * this routine is used for miscellaneous IP-like checksums, mainly
- * in icmp.c
- */
-__sum16 ip_compute_csum(const void *buff, int len)
-{
-       return (__force __sum16)~do_csum(buff,len);
-}
-
 /*
  * copy from fs while checksumming, otherwise like csum_partial
  */