mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
59ed05a7e8
commit
8e3d8433d8
2 changed files with 30 additions and 33 deletions
|
|
@ -16,8 +16,8 @@
|
|||
/*
|
||||
* copy while checksumming, otherwise like csum_partial
|
||||
*/
|
||||
unsigned int csum_partial_copy_nocheck(const unsigned char *src,
|
||||
unsigned char *dst, int len, unsigned int sum)
|
||||
__wsum csum_partial_copy_nocheck(const void *src,
|
||||
void *dst, int len, __wsum sum)
|
||||
{
|
||||
/*
|
||||
* 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,
|
|||
* Copy from userspace and compute checksum. If we catch an exception
|
||||
* then zero the rest of the buffer.
|
||||
*/
|
||||
unsigned int csum_partial_copy_from_user (const unsigned char __user *src,
|
||||
unsigned char *dst, int len, unsigned int sum, int *err_ptr)
|
||||
__wsum csum_partial_copy_from_user (const void __user *src,
|
||||
void *dst, int len, __wsum sum, int *err_ptr)
|
||||
{
|
||||
int missing;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue