Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
linux
Commits
8f3e3723
Commit
8f3e3723
authored
22 years ago
by
David S. Miller
Browse files
Options
Download
Email Patches
Plain Diff
[NET]: Kill final traces of csum_partial_copy_fromuser.
parent
7b7408ba
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
28 additions
and
52 deletions
+28
-52
include/asm-alpha/checksum.h
include/asm-alpha/checksum.h
+2
-8
include/asm-arm/checksum.h
include/asm-arm/checksum.h
+3
-3
include/asm-i386/checksum.h
include/asm-i386/checksum.h
+3
-5
include/asm-ia64/checksum.h
include/asm-ia64/checksum.h
+2
-9
include/asm-m68k/checksum.h
include/asm-m68k/checksum.h
+2
-0
include/asm-mips/checksum.h
include/asm-mips/checksum.h
+0
-1
include/asm-mips64/checksum.h
include/asm-mips64/checksum.h
+0
-1
include/asm-parisc/checksum.h
include/asm-parisc/checksum.h
+2
-7
include/asm-ppc/checksum.h
include/asm-ppc/checksum.h
+2
-3
include/asm-ppc64/checksum.h
include/asm-ppc64/checksum.h
+4
-7
include/asm-s390/checksum.h
include/asm-s390/checksum.h
+2
-0
include/asm-s390x/checksum.h
include/asm-s390x/checksum.h
+2
-0
include/asm-sh/checksum.h
include/asm-sh/checksum.h
+3
-5
include/asm-sparc/checksum.h
include/asm-sparc/checksum.h
+1
-3
No files found.
include/asm-alpha/checksum.h
View file @
8f3e3723
...
...
@@ -42,16 +42,10 @@ 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
*/
unsigned
int
csum_partial_copy
(
const
char
*
src
,
char
*
dst
,
int
len
,
unsigned
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)
*
* this
is obsolete and
will go away.
* this will go away
soon
.
*/
#def
in
e
csum_partial_copy
_fromuser csum_partial_copy
unsigned
in
t
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,
...
...
This diff is collapsed.
Click to expand it.
include/asm-arm/checksum.h
View file @
8f3e3723
...
...
@@ -38,10 +38,10 @@ unsigned int
csum_partial_copy_from_user
(
const
char
*
src
,
char
*
dst
,
int
len
,
int
sum
,
int
*
err_ptr
);
/*
* Th
ese are
the old (and unsafe) way of doing checksums, a warning message will
be
* printed if
they are
used and an exception occurs.
* Th
is is
the old (and unsafe) way of doing checksums, a warning message will
*
be
printed if
it is
used and an exception occurs.
*
* th
ese
functions should go away after some time.
* th
is
functions should go away after some time.
*/
#define csum_partial_copy(src,dst,len,sum) csum_partial_copy_nocheck(src,dst,len,sum)
...
...
This diff is collapsed.
Click to expand it.
include/asm-i386/checksum.h
View file @
8f3e3723
...
...
@@ -50,13 +50,11 @@ unsigned int csum_partial_copy_from_user ( const char *src, char *dst,
}
/*
* Th
ese are
the old (and unsafe) way of doing checksums, a warning message will
be
* printed if
they are
used and an exeption occurs.
* Th
is is
the old (and unsafe) way of doing checksums, a warning message will
*
be
printed if
it is
used and an exeption occurs.
*
* th
ese
function
s
should go away after some time.
* th
is
function should go away after some time.
*/
#define csum_partial_copy_fromuser csum_partial_copy
unsigned
int
csum_partial_copy
(
const
char
*
src
,
char
*
dst
,
int
len
,
int
sum
);
/*
...
...
This diff is collapsed.
Click to expand it.
include/asm-ia64/checksum.h
View file @
8f3e3723
...
...
@@ -48,19 +48,12 @@ 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
);
/*
* The same as csum_partial, but copies from user space (but on the
* ia-64 we have just one address space, so this is identical to the
* above).
*
* This is obsolete and will go away.
*/
#define csum_partial_copy_fromuser 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.
...
...
This diff is collapsed.
Click to expand it.
include/asm-m68k/checksum.h
View file @
8f3e3723
...
...
@@ -21,6 +21,8 @@ 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
);
...
...
This diff is collapsed.
Click to expand it.
include/asm-mips/checksum.h
View file @
8f3e3723
...
...
@@ -61,7 +61,6 @@ extern inline unsigned int csum_and_copy_to_user (const char *src, char *dst,
*
* this is obsolete and will go away.
*/
#define csum_partial_copy_fromuser csum_partial_copy
unsigned
int
csum_partial_copy
(
const
char
*
src
,
char
*
dst
,
int
len
,
unsigned
int
sum
);
...
...
This diff is collapsed.
Click to expand it.
include/asm-mips64/checksum.h
View file @
8f3e3723
...
...
@@ -63,7 +63,6 @@ extern inline unsigned int csum_and_copy_to_user (const char *src, char *dst,
*
* this is obsolete and will go away.
*/
#define csum_partial_copy_fromuser csum_partial_copy
unsigned
int
csum_partial_copy
(
const
char
*
src
,
char
*
dst
,
int
len
,
unsigned
int
sum
);
...
...
This diff is collapsed.
Click to expand it.
include/asm-parisc/checksum.h
View file @
8f3e3723
...
...
@@ -21,15 +21,10 @@ 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
*/
extern
unsigned
int
csum_partial_copy
(
const
char
*
,
char
*
,
int
,
unsigned
int
);
/*
* the same as csum_partial, but copies from user space
*
* this
is obsolete and
will go away.
* this will go away
soon
.
*/
#define csum_partial_copy_fromuser csum_partial_copy
extern
unsigned
int
csum_partial_copy
(
const
char
*
,
char
*
,
int
,
unsigned
int
);
/*
* this is a new version of the above that records errors it finds in *errp,
...
...
This diff is collapsed.
Click to expand it.
include/asm-ppc/checksum.h
View file @
8f3e3723
...
...
@@ -39,12 +39,11 @@ extern unsigned int csum_partial_copy_generic(const char *src, char *dst,
#define csum_partial_copy_nocheck(src, dst, len, sum) \
csum_partial_copy_generic((src), (dst), (len), (sum), 0, 0)
/*
* Old versions which ignore errors.
* 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)
#define csum_partial_copy_fromuser(src, dst, len, sum) \
csum_partial_copy_generic((src), (dst), (len), (sum), 0, 0)
/*
...
...
This diff is collapsed.
Click to expand it.
include/asm-ppc64/checksum.h
View file @
8f3e3723
...
...
@@ -43,6 +43,8 @@ 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
);
...
...
@@ -51,15 +53,10 @@ extern unsigned int csum_partial_copy_generic(const char *src, char *dst,
int
len
,
unsigned
int
sum
,
int
*
src_err
,
int
*
dst_err
);
/*
* the same as csum_partial, but copies from user space.
* the same as csum_partial, but copies from src to dst while it
* checksums.
*/
unsigned
int
csum_partial_copy_fromuser
(
const
char
*
src
,
char
*
dst
,
int
len
,
unsigned
int
sum
,
int
*
src_err
);
unsigned
int
csum_partial_copy_nocheck
(
const
char
*
src
,
char
*
dst
,
int
len
,
...
...
This diff is collapsed.
Click to expand it.
include/asm-s390/checksum.h
View file @
8f3e3723
...
...
@@ -67,6 +67,8 @@ csum_partial_inline(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.
*/
static
inline
unsigned
int
...
...
This diff is collapsed.
Click to expand it.
include/asm-s390x/checksum.h
View file @
8f3e3723
...
...
@@ -69,6 +69,8 @@ csum_partial_inline(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.
*/
static
inline
unsigned
int
...
...
This diff is collapsed.
Click to expand it.
include/asm-sh/checksum.h
View file @
8f3e3723
...
...
@@ -58,13 +58,11 @@ unsigned int csum_partial_copy_from_user ( const char *src, char *dst,
}
/*
* Th
ese are
the old (and unsafe) way of doing checksums, a warning message will
be
* printed if
they are
used and an exeption occurs.
* Th
is is
the old (and unsafe) way of doing checksums, a warning message will
*
be
printed if
it is
used and an exeption occurs.
*
* th
ese
function
s
should go away after some time.
* th
is
function should go away after some time.
*/
#define csum_partial_copy_fromuser csum_partial_copy
unsigned
int
csum_partial_copy
(
const
char
*
src
,
char
*
dst
,
int
len
,
int
sum
);
/*
...
...
This diff is collapsed.
Click to expand it.
include/asm-sparc/checksum.h
View file @
8f3e3723
...
...
@@ -40,11 +40,9 @@ extern unsigned int csum_partial(const unsigned char * buff, int len, unsigned i
* better 64-bit) boundary
*/
/* FIXME: Remove th
ese two
macro
s
ASAP */
/* FIXME: Remove th
is
macro ASAP */
#define csum_partial_copy(src, dst, len, sum) \
csum_partial_copy_nocheck(src,dst,len,sum)
#define csum_partial_copy_fromuser(s, d, l, w) \
csum_partial_copy((char *) (s), (d), (l), (w))
extern
unsigned
int
__csum_partial_copy_sparc_generic
(
const
char
*
,
char
*
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment