This commit was manufactured by cvs2svn to create tag
[linux-2.6.git] / include / asm-sh / checksum.h
index f1874a1..512ffe6 100644 (file)
@@ -10,7 +10,6 @@
  */
 
 #include <linux/config.h>
-#include <linux/in6.h>
 
 /*
  * computes the checksum of a memory block at buff, length len,
@@ -160,6 +159,7 @@ static __inline__ unsigned short ip_compute_csum(unsigned char * buff, int len)
 }
 
 #define _HAVE_ARCH_IPV6_CSUM
+#ifdef CONFIG_IPV6
 static __inline__ unsigned short int csum_ipv6_magic(struct in6_addr *saddr,
                                                     struct in6_addr *daddr,
                                                     __u32 len,
@@ -195,6 +195,7 @@ static __inline__ unsigned short int csum_ipv6_magic(struct in6_addr *saddr,
 
        return csum_fold(sum);
 }
+#endif
 
 /* 
  *     Copy and checksum to user