patch-1.3.7 linux/include/asm-alpha/checksum.h

Next file: linux/include/asm-alpha/elf.h
Previous file: linux/fs/umsdos/rdir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.6/linux/include/asm-alpha/checksum.h linux/include/asm-alpha/checksum.h
@@ -6,7 +6,7 @@
  *	This is a version of ip_compute_csum() optimized for IP headers,
  *	which always checksum on 4 octet boundaries.
  */
-extern inline unsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl);
+extern unsigned short ip_fast_csum(unsigned char * iph, unsigned int ihl);
 
 /*
  * computes the checksum of the TCP/UDP pseudo-header
@@ -33,14 +33,19 @@
 extern unsigned int csum_partial(unsigned char * buff, int len, unsigned int sum);
 
 /*
- * the same as csum_partial, but copies from fs:src while it
+ * the same as csum_partial, but copies from src while it
  * checksums
  *
  * here even more important to align src and dst on a 32-bit (or even
  * better 64-bit) boundary
  */
+unsigned int csum_partial_copy( char *src, char *dst, int len, int sum);
 
-extern unsigned int csum_partial_copyffs( char *src, char *dst, int len, int sum);
+/*
+ * the same as csum_partial, but copies from user space (but on the alpha
+ * we have just one address space, so this is identical to the above)
+ */
+#define csum_partial_copy_fromuser csum_partial_copy
 
 
 /*

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this