diff options
Diffstat (limited to 'arch/m32r/lib/csum_partial_copy.c')
-rw-r--r-- | arch/m32r/lib/csum_partial_copy.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/arch/m32r/lib/csum_partial_copy.c b/arch/m32r/lib/csum_partial_copy.c index 3d5f06145854..5596f3df833f 100644 --- a/arch/m32r/lib/csum_partial_copy.c +++ b/arch/m32r/lib/csum_partial_copy.c | |||
@@ -27,9 +27,8 @@ | |||
27 | /* | 27 | /* |
28 | * Copy while checksumming, otherwise like csum_partial | 28 | * Copy while checksumming, otherwise like csum_partial |
29 | */ | 29 | */ |
30 | unsigned int | 30 | __wsum |
31 | csum_partial_copy_nocheck (const unsigned char *src, unsigned char *dst, | 31 | csum_partial_copy_nocheck (const void *src, void *dst, int len, __wsum sum) |
32 | int len, unsigned int sum) | ||
33 | { | 32 | { |
34 | sum = csum_partial(src, len, sum); | 33 | sum = csum_partial(src, len, sum); |
35 | memcpy(dst, src, len); | 34 | memcpy(dst, src, len); |
@@ -42,10 +41,9 @@ EXPORT_SYMBOL(csum_partial_copy_nocheck); | |||
42 | * Copy from userspace and compute checksum. If we catch an exception | 41 | * Copy from userspace and compute checksum. If we catch an exception |
43 | * then zero the rest of the buffer. | 42 | * then zero the rest of the buffer. |
44 | */ | 43 | */ |
45 | unsigned int | 44 | __wsum |
46 | csum_partial_copy_from_user (const unsigned char __user *src, | 45 | csum_partial_copy_from_user (const void __user *src, void *dst, |
47 | unsigned char *dst, | 46 | int len, __wsum sum, int *err_ptr) |
48 | int len, unsigned int sum, int *err_ptr) | ||
49 | { | 47 | { |
50 | int missing; | 48 | int missing; |
51 | 49 | ||