diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-03-22 13:08:32 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-03-28 18:23:50 -0400 |
commit | de51d6cc2cf9daa9b5155faefb714f5b477cf160 (patch) | |
tree | f7ab7e25a42407a2473a8cd95f0ff7288c83a7b3 /arch/nios2/mm | |
parent | 981db65b5229edb5ab336e3e23758791a1aa0b03 (diff) |
nios2: switch to RAW_COPY_USER
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/nios2/mm')
-rw-r--r-- | arch/nios2/mm/uaccess.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/nios2/mm/uaccess.c b/arch/nios2/mm/uaccess.c index 7663e156ff4f..804983317766 100644 --- a/arch/nios2/mm/uaccess.c +++ b/arch/nios2/mm/uaccess.c | |||
@@ -10,9 +10,9 @@ | |||
10 | #include <linux/export.h> | 10 | #include <linux/export.h> |
11 | #include <linux/uaccess.h> | 11 | #include <linux/uaccess.h> |
12 | 12 | ||
13 | asm(".global __copy_from_user\n" | 13 | asm(".global raw_copy_from_user\n" |
14 | " .type __copy_from_user, @function\n" | 14 | " .type raw_copy_from_user, @function\n" |
15 | "__copy_from_user:\n" | 15 | "raw_copy_from_user:\n" |
16 | " movi r2,7\n" | 16 | " movi r2,7\n" |
17 | " mov r3,r4\n" | 17 | " mov r3,r4\n" |
18 | " bge r2,r6,1f\n" | 18 | " bge r2,r6,1f\n" |
@@ -65,12 +65,12 @@ asm(".global __copy_from_user\n" | |||
65 | ".word 7b,13b\n" | 65 | ".word 7b,13b\n" |
66 | ".previous\n" | 66 | ".previous\n" |
67 | ); | 67 | ); |
68 | EXPORT_SYMBOL(__copy_from_user); | 68 | EXPORT_SYMBOL(raw_copy_from_user); |
69 | 69 | ||
70 | asm( | 70 | asm( |
71 | " .global __copy_to_user\n" | 71 | " .global raw_copy_to_user\n" |
72 | " .type __copy_to_user, @function\n" | 72 | " .type raw_copy_to_user, @function\n" |
73 | "__copy_to_user:\n" | 73 | "raw_copy_to_user:\n" |
74 | " movi r2,7\n" | 74 | " movi r2,7\n" |
75 | " mov r3,r4\n" | 75 | " mov r3,r4\n" |
76 | " bge r2,r6,1f\n" | 76 | " bge r2,r6,1f\n" |
@@ -127,7 +127,7 @@ asm( | |||
127 | ".word 11b,13b\n" | 127 | ".word 11b,13b\n" |
128 | ".word 12b,13b\n" | 128 | ".word 12b,13b\n" |
129 | ".previous\n"); | 129 | ".previous\n"); |
130 | EXPORT_SYMBOL(__copy_to_user); | 130 | EXPORT_SYMBOL(raw_copy_to_user); |
131 | 131 | ||
132 | long strncpy_from_user(char *__to, const char __user *__from, long __len) | 132 | long strncpy_from_user(char *__to, const char __user *__from, long __len) |
133 | { | 133 | { |