diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-06-23 05:04:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-23 10:42:54 -0400 |
commit | a8a77573c9e5345bcf6a963858745cd83c923f44 (patch) | |
tree | 04f9bc72aca54effdb2254dd1e0b8ec5fa94f6cf /arch/frv | |
parent | 86c3a7645c05a7d06b72653aa4b2bea4e7229d1b (diff) |
[PATCH] frv: __user infrastructure
Add general annotations to the FRV arch for sparse.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/frv')
-rw-r--r-- | arch/frv/kernel/uaccess.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/frv/kernel/uaccess.c b/arch/frv/kernel/uaccess.c index 9b751c0f0e84..9fb771a20df3 100644 --- a/arch/frv/kernel/uaccess.c +++ b/arch/frv/kernel/uaccess.c | |||
@@ -17,7 +17,7 @@ | |||
17 | /* | 17 | /* |
18 | * copy a null terminated string from userspace | 18 | * copy a null terminated string from userspace |
19 | */ | 19 | */ |
20 | long strncpy_from_user(char *dst, const char *src, long count) | 20 | long strncpy_from_user(char *dst, const char __user *src, long count) |
21 | { | 21 | { |
22 | unsigned long max; | 22 | unsigned long max; |
23 | char *p, ch; | 23 | char *p, ch; |
@@ -70,9 +70,9 @@ EXPORT_SYMBOL(strncpy_from_user); | |||
70 | * | 70 | * |
71 | * Return 0 on exception, a value greater than N if too long | 71 | * Return 0 on exception, a value greater than N if too long |
72 | */ | 72 | */ |
73 | long strnlen_user(const char *src, long count) | 73 | long strnlen_user(const char __user *src, long count) |
74 | { | 74 | { |
75 | const char *p; | 75 | const char __user *p; |
76 | long err = 0; | 76 | long err = 0; |
77 | char ch; | 77 | char ch; |
78 | 78 | ||