patch-2.4.22 linux-2.4.22/arch/sh64/lib/old-checksum.c

Next file: linux-2.4.22/arch/sh64/lib/page_clear.S
Previous file: linux-2.4.22/arch/sh64/lib/memcpy.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/arch/sh64/lib/old-checksum.c linux-2.4.22/arch/sh64/lib/old-checksum.c
@@ -0,0 +1,17 @@
+/*
+ * FIXME: old compatibility stuff, will be removed soon.
+ */
+
+#include <net/checksum.h>
+
+unsigned int csum_partial_copy( const char *src, char *dst, int len, int sum)
+{
+	int src_err=0, dst_err=0;
+
+	sum = csum_partial_copy_generic ( src, dst, len, sum, &src_err, &dst_err);
+
+	if (src_err || dst_err)
+		printk("old csum_partial_copy_fromuser(), tell mingo to convert me.\n");
+
+	return sum;
+}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)