summaryrefslogtreecommitdiffstats
path: root/arch/m32r/lib
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-03-21 17:02:25 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2017-04-26 18:05:56 +0200
commit9a677341cd8de01a9eaf2c24a4b735939e507943 (patch)
tree2e0a07f71d8fbfd22084c3289b1f5b2ab2bd1aaf /arch/m32r/lib
parentm32r: get rid of zeroing (diff)
downloadlinux-9a677341cd8de01a9eaf2c24a4b735939e507943.tar.xz
linux-9a677341cd8de01a9eaf2c24a4b735939e507943.zip
m32r: switch to RAW_COPY_USER
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/m32r/lib')
-rw-r--r--arch/m32r/lib/usercopy.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/arch/m32r/lib/usercopy.c b/arch/m32r/lib/usercopy.c
index 6aacf5ba0a58..b3ef2c899f96 100644
--- a/arch/m32r/lib/usercopy.c
+++ b/arch/m32r/lib/usercopy.c
@@ -11,28 +11,6 @@
#include <linux/thread_info.h>
#include <linux/uaccess.h>
-unsigned long
-__generic_copy_to_user(void __user *to, const void *from, unsigned long n)
-{
- prefetch(from);
- if (access_ok(VERIFY_WRITE, to, n))
- __copy_user(to,from,n);
- return n;
-}
-
-unsigned long
-__generic_copy_from_user(void *to, const void __user *from, unsigned long n)
-{
- unsigned long ret = n;
- prefetchw(to);
- if (access_ok(VERIFY_READ, from, n))
- ret = __copy_user(to,from,n);
- if (unlikely(ret))
- memset(to + n - ret, 0, ret);
- return ret;
-}
-
-
/*
* Copy a null terminated string from userspace.
*/