diff options
author | Dave Jones <davej@redhat.com> | 2006-12-12 17:41:41 -0500 |
---|---|---|
committer | Dave Jones <davej@redhat.com> | 2006-12-12 17:41:41 -0500 |
commit | c4366889dda8110247be59ca41fddb82951a8c26 (patch) | |
tree | 705c1a996bed8fd48ce94ff33ec9fd00f9b94875 /arch/mips/lib/csum_partial_copy.c | |
parent | db2fb9db5735cc532fd4fc55e94b9a3c3750378e (diff) | |
parent | e1036502e5263851259d147771226161e5ccc85a (diff) |
Merge ../linus
Conflicts:
drivers/cpufreq/cpufreq.c
Diffstat (limited to 'arch/mips/lib/csum_partial_copy.c')
-rw-r--r-- | arch/mips/lib/csum_partial_copy.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/mips/lib/csum_partial_copy.c b/arch/mips/lib/csum_partial_copy.c index 6e9f366f961d..06771040a267 100644 --- a/arch/mips/lib/csum_partial_copy.c +++ b/arch/mips/lib/csum_partial_copy.c | |||
@@ -7,6 +7,7 @@ | |||
7 | * Copyright (C) 1998, 1999 Ralf Baechle | 7 | * Copyright (C) 1998, 1999 Ralf Baechle |
8 | */ | 8 | */ |
9 | #include <linux/kernel.h> | 9 | #include <linux/kernel.h> |
10 | #include <linux/module.h> | ||
10 | #include <linux/types.h> | 11 | #include <linux/types.h> |
11 | #include <asm/byteorder.h> | 12 | #include <asm/byteorder.h> |
12 | #include <asm/string.h> | 13 | #include <asm/string.h> |
@@ -16,8 +17,8 @@ | |||
16 | /* | 17 | /* |
17 | * copy while checksumming, otherwise like csum_partial | 18 | * copy while checksumming, otherwise like csum_partial |
18 | */ | 19 | */ |
19 | unsigned int csum_partial_copy_nocheck(const unsigned char *src, | 20 | __wsum csum_partial_copy_nocheck(const void *src, |
20 | unsigned char *dst, int len, unsigned int sum) | 21 | void *dst, int len, __wsum sum) |
21 | { | 22 | { |
22 | /* | 23 | /* |
23 | * It's 2:30 am and I don't feel like doing it real ... | 24 | * It's 2:30 am and I don't feel like doing it real ... |
@@ -29,12 +30,14 @@ unsigned int csum_partial_copy_nocheck(const unsigned char *src, | |||
29 | return sum; | 30 | return sum; |
30 | } | 31 | } |
31 | 32 | ||
33 | EXPORT_SYMBOL(csum_partial_copy_nocheck); | ||
34 | |||
32 | /* | 35 | /* |
33 | * Copy from userspace and compute checksum. If we catch an exception | 36 | * Copy from userspace and compute checksum. If we catch an exception |
34 | * then zero the rest of the buffer. | 37 | * then zero the rest of the buffer. |
35 | */ | 38 | */ |
36 | unsigned int csum_partial_copy_from_user (const unsigned char __user *src, | 39 | __wsum csum_partial_copy_from_user (const void __user *src, |
37 | unsigned char *dst, int len, unsigned int sum, int *err_ptr) | 40 | void *dst, int len, __wsum sum, int *err_ptr) |
38 | { | 41 | { |
39 | int missing; | 42 | int missing; |
40 | 43 | ||