diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-15 00:18:18 -0500 |
|---|---|---|
| committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:23:09 -0500 |
| commit | 8e3d8433d8c22ca6c42cba4a67d300c39aae7822 (patch) | |
| tree | 98b59679682536f62fd6a1851985f728aa770cc9 /arch/mips/lib | |
| parent | 59ed05a7e891d694a43df96ac613f7e8e164eb95 (diff) | |
[NET]: MIPS checksum annotations and cleanups.
* sanitize prototypes, annotate
* kill shift-by-16 in checksum calculations
* htons->shift in l-e checksum calculations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/mips/lib')
| -rw-r--r-- | arch/mips/lib/csum_partial_copy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/lib/csum_partial_copy.c b/arch/mips/lib/csum_partial_copy.c index 6e9f366f961d..1720f2ceeeae 100644 --- a/arch/mips/lib/csum_partial_copy.c +++ b/arch/mips/lib/csum_partial_copy.c | |||
| @@ -16,8 +16,8 @@ | |||
| 16 | /* | 16 | /* |
| 17 | * copy while checksumming, otherwise like csum_partial | 17 | * copy while checksumming, otherwise like csum_partial |
| 18 | */ | 18 | */ |
| 19 | unsigned int csum_partial_copy_nocheck(const unsigned char *src, | 19 | __wsum csum_partial_copy_nocheck(const void *src, |
| 20 | unsigned char *dst, int len, unsigned int sum) | 20 | void *dst, int len, __wsum sum) |
| 21 | { | 21 | { |
| 22 | /* | 22 | /* |
| 23 | * It's 2:30 am and I don't feel like doing it real ... | 23 | * It's 2:30 am and I don't feel like doing it real ... |
| @@ -33,8 +33,8 @@ unsigned int csum_partial_copy_nocheck(const unsigned char *src, | |||
| 33 | * Copy from userspace and compute checksum. If we catch an exception | 33 | * Copy from userspace and compute checksum. If we catch an exception |
| 34 | * then zero the rest of the buffer. | 34 | * then zero the rest of the buffer. |
| 35 | */ | 35 | */ |
| 36 | unsigned int csum_partial_copy_from_user (const unsigned char __user *src, | 36 | __wsum csum_partial_copy_from_user (const void __user *src, |
| 37 | unsigned char *dst, int len, unsigned int sum, int *err_ptr) | 37 | void *dst, int len, __wsum sum, int *err_ptr) |
| 38 | { | 38 | { |
| 39 | int missing; | 39 | int missing; |
| 40 | 40 | ||
