summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@nuts.ninka.net>2002-10-15 11:43:12 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2002-10-15 11:43:12 -0700
commit8585093ed7b481ba6fb4e962702ba94d36a5ff4e (patch)
treeaafd90b4f70da873b321e0047deea3d155fb3e84 /include
parent9d99fd6a8dae33f309452f3aad9272a946ef8d59 (diff)
[NET]: Apply missed parts of csum_partial_copy killing patch.
Diffstat (limited to 'include')
-rw-r--r--include/asm-alpha/checksum.h8
-rw-r--r--include/asm-i386/checksum.h8
-rw-r--r--include/asm-ia64/checksum.h9
-rw-r--r--include/asm-m68k/checksum.h12
-rw-r--r--include/asm-mips/checksum.h12
-rw-r--r--include/asm-mips64/checksum.h12
-rw-r--r--include/asm-parisc/checksum.h18
-rw-r--r--include/asm-ppc/checksum.h7
-rw-r--r--include/asm-ppc64/checksum.h5
-rw-r--r--include/asm-s390/checksum.h17
-rw-r--r--include/asm-s390x/checksum.h17
-rw-r--r--include/asm-sh/checksum.h8
-rw-r--r--include/asm-sparc/checksum.h4
13 files changed, 5 insertions, 132 deletions
diff --git a/include/asm-alpha/checksum.h b/include/asm-alpha/checksum.h
index 5c1fa2e5bdf3..c9501f230756 100644
--- a/include/asm-alpha/checksum.h
+++ b/include/asm-alpha/checksum.h
@@ -42,14 +42,6 @@ extern unsigned int csum_partial(const unsigned char * buff, int len, unsigned i
*
* here even more important to align src and dst on a 32-bit (or even
* better 64-bit) boundary
- *
- * this will go away soon.
- */
-unsigned int csum_partial_copy(const char *src, char *dst, int len, unsigned int sum);
-
-/*
- * this is a new version of the above that records errors it finds in *errp,
- * but continues and zeros the rest of the buffer.
*/
unsigned int csum_partial_copy_from_user(const char *src, char *dst, int len, unsigned int sum, int *errp);
diff --git a/include/asm-i386/checksum.h b/include/asm-i386/checksum.h
index a9bcb06e7207..15d7909bfe3c 100644
--- a/include/asm-i386/checksum.h
+++ b/include/asm-i386/checksum.h
@@ -50,14 +50,6 @@ unsigned int csum_partial_copy_from_user ( const char *src, char *dst,
}
/*
- * This is the old (and unsafe) way of doing checksums, a warning message will
- * be printed if it is used and an exeption occurs.
- *
- * this function should go away after some time.
- */
-unsigned int csum_partial_copy( const char *src, char *dst, int len, int sum);
-
-/*
* This is a version of ip_compute_csum() optimized for IP headers,
* which always checksum on 4 octet boundaries.
*
diff --git a/include/asm-ia64/checksum.h b/include/asm-ia64/checksum.h
index 397c2e28f46b..6e2dc999b2b4 100644
--- a/include/asm-ia64/checksum.h
+++ b/include/asm-ia64/checksum.h
@@ -48,15 +48,6 @@ extern unsigned int csum_partial (const unsigned char * buff, int len,
*
* Here it is even more important to align src and dst on a 32-bit (or
* even better 64-bit) boundary.
- *
- * this will go away soon.
- */
-extern unsigned int csum_partial_copy (const char *src, char *dst, int len,
- unsigned int sum);
-
-/*
- * This is a new version of the above that records errors it finds in
- * *errp, but continues and zeros the rest of the buffer.
*/
extern unsigned int csum_partial_copy_from_user (const char *src, char *dst,
int len, unsigned int sum,
diff --git a/include/asm-m68k/checksum.h b/include/asm-m68k/checksum.h
index c6847a43adb8..f3fa10674a9e 100644
--- a/include/asm-m68k/checksum.h
+++ b/include/asm-m68k/checksum.h
@@ -21,18 +21,6 @@ unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum)
*
* here even more important to align src and dst on a 32-bit (or even
* better 64-bit) boundary
- *
- * this will go away soon.
- */
-
-unsigned int csum_partial_copy(const char *src, char *dst, int len, int sum);
-
-
-/*
- * the same as csum_partial_copy, but copies from user space.
- *
- * here even more important to align src and dst on a 32-bit (or even
- * better 64-bit) boundary
*/
extern unsigned int csum_partial_copy_from_user(const char *src, char *dst,
diff --git a/include/asm-mips/checksum.h b/include/asm-mips/checksum.h
index b5ae00af71f7..55932940b64b 100644
--- a/include/asm-mips/checksum.h
+++ b/include/asm-mips/checksum.h
@@ -28,12 +28,6 @@ unsigned int csum_partial(const unsigned char *buff, int len, unsigned int sum);
* this is a new version of the above that records errors it finds in *errp,
* but continues and zeros the rest of the buffer.
*/
-#define csum_partial_copy_nocheck csum_partial_copy
-
-/*
- * this is a new version of the above that records errors it finds in *errp,
- * but continues and zeros the rest of the buffer.
- */
unsigned int csum_partial_copy_from_user(const char *src, char *dst, int len,
unsigned int sum, int *errp);
@@ -58,11 +52,9 @@ extern inline unsigned int csum_and_copy_to_user (const char *src, char *dst,
/*
* the same as csum_partial, but copies from user space (but on MIPS
* we have just one address space, so this is identical to the above)
- *
- * this is obsolete and will go away.
*/
-unsigned int csum_partial_copy(const char *src, char *dst, int len,
- unsigned int sum);
+unsigned int csum_partial_copy_nocheck(const char *src, char *dst, int len,
+ unsigned int sum);
/*
* Fold a partial checksum without adding pseudo headers
diff --git a/include/asm-mips64/checksum.h b/include/asm-mips64/checksum.h
index a6bc85ed6218..27d2b13b00a1 100644
--- a/include/asm-mips64/checksum.h
+++ b/include/asm-mips64/checksum.h
@@ -30,12 +30,6 @@ unsigned int csum_partial(const unsigned char *buff, int len, unsigned int sum);
* this is a new version of the above that records errors it finds in *errp,
* but continues and zeros the rest of the buffer.
*/
-#define csum_partial_copy_nocheck csum_partial_copy
-
-/*
- * this is a new version of the above that records errors it finds in *errp,
- * but continues and zeros the rest of the buffer.
- */
unsigned int csum_partial_copy_from_user(const char *src, char *dst, int len,
unsigned int sum, int *errp);
@@ -60,11 +54,9 @@ extern inline unsigned int csum_and_copy_to_user (const char *src, char *dst,
/*
* the same as csum_partial, but copies from user space (but on MIPS
* we have just one address space, so this is identical to the above)
- *
- * this is obsolete and will go away.
*/
-unsigned int csum_partial_copy(const char *src, char *dst, int len,
- unsigned int sum);
+unsigned int csum_partial_copy_nocheck(const char *src, char *dst, int len,
+ unsigned int sum);
/*
* Fold a partial checksum without adding pseudo headers
diff --git a/include/asm-parisc/checksum.h b/include/asm-parisc/checksum.h
index 4457142807ae..ed8d0ee204da 100644
--- a/include/asm-parisc/checksum.h
+++ b/include/asm-parisc/checksum.h
@@ -21,10 +21,8 @@ extern unsigned int csum_partial(const unsigned char *, int, unsigned int);
*
* here even more important to align src and dst on a 32-bit (or even
* better 64-bit) boundary
- *
- * this will go away soon.
*/
-extern unsigned int csum_partial_copy(const char *, char *, int, unsigned int);
+extern unsigned int csum_partial_copy_nocheck(const char *, char *, int, unsigned int);
/*
* this is a new version of the above that records errors it finds in *errp,
@@ -33,20 +31,6 @@ extern unsigned int csum_partial_copy(const char *, char *, int, unsigned int);
unsigned int csum_partial_copy_from_user(const char *src, char *dst, int len, unsigned int sum, int *errp);
/*
- * Note: when you get a NULL pointer exception here this means someone
- * passed in an incorrect kernel address to one of these functions.
- *
- * If you use these functions directly please don't forget the
- * verify_area().
- */
-extern __inline__
-unsigned int csum_partial_copy_nocheck (const char *src, char *dst,
- int len, int sum)
-{
- return csum_partial_copy (src, dst, len, sum);
-}
-
-/*
* Optimized for IP headers, which always checksum on 4 octet boundaries.
*
* Written by Randolph Chung <tausq@debian.org>
diff --git a/include/asm-ppc/checksum.h b/include/asm-ppc/checksum.h
index eed4bb3ea31a..1516be990218 100644
--- a/include/asm-ppc/checksum.h
+++ b/include/asm-ppc/checksum.h
@@ -38,13 +38,6 @@ extern unsigned int csum_partial_copy_generic(const char *src, char *dst,
/* FIXME: this needs to be written to really do no check -- Cort */
#define csum_partial_copy_nocheck(src, dst, len, sum) \
csum_partial_copy_generic((src), (dst), (len), (sum), 0, 0)
-/*
- * Old version which ignore errors.
- * it will go away soon.
- */
-#define csum_partial_copy(src, dst, len, sum) \
- csum_partial_copy_generic((src), (dst), (len), (sum), 0, 0)
-
/*
* turns a 32-bit partial checksum (e.g. from csum_partial) into a
diff --git a/include/asm-ppc64/checksum.h b/include/asm-ppc64/checksum.h
index cd68aa49b844..5ae7cdbe8ba8 100644
--- a/include/asm-ppc64/checksum.h
+++ b/include/asm-ppc64/checksum.h
@@ -43,12 +43,7 @@ extern unsigned int csum_partial(const unsigned char * buff, int len,
/*
* the same as csum_partial, but copies from src to dst while it
* checksums
- *
- * csum_partial_copy will go away soon.
*/
-unsigned int csum_partial_copy(const char *src, char *dst,
- int len, unsigned int sum);
-
extern unsigned int csum_partial_copy_generic(const char *src, char *dst,
int len, unsigned int sum,
int *src_err, int *dst_err);
diff --git a/include/asm-s390/checksum.h b/include/asm-s390/checksum.h
index b264285402bf..a100cccb011e 100644
--- a/include/asm-s390/checksum.h
+++ b/include/asm-s390/checksum.h
@@ -62,23 +62,6 @@ csum_partial_inline(const unsigned char * buff, int len, unsigned int sum)
}
/*
- * 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
- *
- * this will go away soon.
- */
-
-static inline unsigned int
-csum_partial_copy(const char *src, char *dst, int len,unsigned int sum)
-{
- memcpy(dst,src,len);
- return csum_partial_inline(dst, len, sum);
-}
-
-/*
* the same as csum_partial_copy, but copies from user space.
*
* here even more important to align src and dst on a 32-bit (or even
diff --git a/include/asm-s390x/checksum.h b/include/asm-s390x/checksum.h
index 06ec7dded453..d6774b735b7b 100644
--- a/include/asm-s390x/checksum.h
+++ b/include/asm-s390x/checksum.h
@@ -64,23 +64,6 @@ csum_partial_inline(const unsigned char * buff, int len, unsigned int sum)
}
/*
- * 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
- *
- * this will go away soon.
- */
-
-static inline unsigned int
-csum_partial_copy(const char *src, char *dst, int len,unsigned int sum)
-{
- memcpy(dst,src,len);
- return csum_partial_inline(dst, len, sum);
-}
-
-/*
* the same as csum_partial_copy, but copies from user space.
*
* here even more important to align src and dst on a 32-bit (or even
diff --git a/include/asm-sh/checksum.h b/include/asm-sh/checksum.h
index 3674b28ff024..5b96a7771934 100644
--- a/include/asm-sh/checksum.h
+++ b/include/asm-sh/checksum.h
@@ -58,14 +58,6 @@ unsigned int csum_partial_copy_from_user ( const char *src, char *dst,
}
/*
- * This is the old (and unsafe) way of doing checksums, a warning message will
- * be printed if it is used and an exeption occurs.
- *
- * this function should go away after some time.
- */
-unsigned int csum_partial_copy( const char *src, char *dst, int len, int sum);
-
-/*
* Fold a partial checksum
*/
diff --git a/include/asm-sparc/checksum.h b/include/asm-sparc/checksum.h
index b3e04d4e6da1..eb027804f829 100644
--- a/include/asm-sparc/checksum.h
+++ b/include/asm-sparc/checksum.h
@@ -40,10 +40,6 @@ extern unsigned int csum_partial(const unsigned char * buff, int len, unsigned i
* better 64-bit) boundary
*/
-/* FIXME: Remove this macro ASAP */
-#define csum_partial_copy(src, dst, len, sum) \
- csum_partial_copy_nocheck(src,dst,len,sum)
-
extern unsigned int __csum_partial_copy_sparc_generic (const char *, char *);
extern __inline__ unsigned int