diff options
Diffstat (limited to 'arch/um/kernel/skas/uaccess.c')
-rw-r--r-- | arch/um/kernel/skas/uaccess.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/um/kernel/skas/uaccess.c b/arch/um/kernel/skas/uaccess.c index 696634214dc6..9fefd924fb49 100644 --- a/arch/um/kernel/skas/uaccess.c +++ b/arch/um/kernel/skas/uaccess.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <linux/err.h> | 6 | #include <linux/err.h> |
7 | #include <linux/highmem.h> | 7 | #include <linux/highmem.h> |
8 | #include <linux/mm.h> | 8 | #include <linux/mm.h> |
9 | #include <linux/module.h> | ||
9 | #include <linux/sched.h> | 10 | #include <linux/sched.h> |
10 | #include <asm/current.h> | 11 | #include <asm/current.h> |
11 | #include <asm/page.h> | 12 | #include <asm/page.h> |
@@ -149,6 +150,7 @@ int copy_from_user(void *to, const void __user *from, int n) | |||
149 | buffer_op((unsigned long) from, n, 0, copy_chunk_from_user, &to): | 150 | buffer_op((unsigned long) from, n, 0, copy_chunk_from_user, &to): |
150 | n; | 151 | n; |
151 | } | 152 | } |
153 | EXPORT_SYMBOL(copy_from_user); | ||
152 | 154 | ||
153 | static int copy_chunk_to_user(unsigned long to, int len, void *arg) | 155 | static int copy_chunk_to_user(unsigned long to, int len, void *arg) |
154 | { | 156 | { |
@@ -170,6 +172,7 @@ int copy_to_user(void __user *to, const void *from, int n) | |||
170 | buffer_op((unsigned long) to, n, 1, copy_chunk_to_user, &from) : | 172 | buffer_op((unsigned long) to, n, 1, copy_chunk_to_user, &from) : |
171 | n; | 173 | n; |
172 | } | 174 | } |
175 | EXPORT_SYMBOL(copy_to_user); | ||
173 | 176 | ||
174 | static int strncpy_chunk_from_user(unsigned long from, int len, void *arg) | 177 | static int strncpy_chunk_from_user(unsigned long from, int len, void *arg) |
175 | { | 178 | { |
@@ -204,6 +207,7 @@ int strncpy_from_user(char *dst, const char __user *src, int count) | |||
204 | return -EFAULT; | 207 | return -EFAULT; |
205 | return strnlen(dst, count); | 208 | return strnlen(dst, count); |
206 | } | 209 | } |
210 | EXPORT_SYMBOL(strncpy_from_user); | ||
207 | 211 | ||
208 | static int clear_chunk(unsigned long addr, int len, void *unused) | 212 | static int clear_chunk(unsigned long addr, int len, void *unused) |
209 | { | 213 | { |
@@ -226,6 +230,7 @@ int clear_user(void __user *mem, int len) | |||
226 | return access_ok(VERIFY_WRITE, mem, len) ? | 230 | return access_ok(VERIFY_WRITE, mem, len) ? |
227 | buffer_op((unsigned long) mem, len, 1, clear_chunk, NULL) : len; | 231 | buffer_op((unsigned long) mem, len, 1, clear_chunk, NULL) : len; |
228 | } | 232 | } |
233 | EXPORT_SYMBOL(clear_user); | ||
229 | 234 | ||
230 | static int strnlen_chunk(unsigned long str, int len, void *arg) | 235 | static int strnlen_chunk(unsigned long str, int len, void *arg) |
231 | { | 236 | { |
@@ -251,3 +256,4 @@ int strnlen_user(const void __user *str, int len) | |||
251 | return count + 1; | 256 | return count + 1; |
252 | return -EFAULT; | 257 | return -EFAULT; |
253 | } | 258 | } |
259 | EXPORT_SYMBOL(strnlen_user); | ||