summaryrefslogtreecommitdiffstats
path: root/arch/mn10300/lib/usercopy.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-03-21 17:06:57 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2017-03-29 00:23:49 +0200
commit19dbf70c5acce91c6cacfd0983c2b062644fa7a4 (patch)
tree4e7ecdad6c360c2564a14fea35ab2acc076ade3f /arch/mn10300/lib/usercopy.c
parentmn10300: get rid of zeroing (diff)
downloadlinux-19dbf70c5acce91c6cacfd0983c2b062644fa7a4.tar.xz
linux-19dbf70c5acce91c6cacfd0983c2b062644fa7a4.zip
mn10300: switch to RAW_COPY_USER
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/mn10300/lib/usercopy.c')
-rw-r--r--arch/mn10300/lib/usercopy.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/arch/mn10300/lib/usercopy.c b/arch/mn10300/lib/usercopy.c
index b48af8d4f38d..cece1799cc32 100644
--- a/arch/mn10300/lib/usercopy.c
+++ b/arch/mn10300/lib/usercopy.c
@@ -11,25 +11,6 @@
*/
#include <linux/uaccess.h>
-unsigned long
-__generic_copy_to_user(void *to, const void *from, unsigned long n)
-{
- if (access_ok(VERIFY_WRITE, to, n))
- __copy_user(to, from, n);
- return n;
-}
-
-unsigned long
-__generic_copy_from_user(void *to, const void *from, unsigned long n)
-{
- unsigned long res = n;
- if (access_ok(VERIFY_READ, from, res))
- __copy_user(to, from, res);
- if (unlikely(res))
- memset(to + n - res, 0, res);
- return res;
-}
-
/*
* Copy a null terminated string from userspace.
*/