summaryrefslogtreecommitdiff
path: root/arch/m68k/include/asm/uaccess_no.h
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-03-21 15:50:56 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2017-03-29 01:23:41 +0300
commit29be02eb6fef5f26332eb3e13ead868cff0910af (patch)
treeabd600d02a1f0a57f569ccd10fa5ed97f6aa868c /arch/m68k/include/asm/uaccess_no.h
parent7cefa5a05dbda1f0bbbd98e9d2861b09a35cc6ea (diff)
downloadlinux-29be02eb6fef5f26332eb3e13ead868cff0910af.tar.xz
m68k: switch to RAW_COPY_USER
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/m68k/include/asm/uaccess_no.h')
-rw-r--r--arch/m68k/include/asm/uaccess_no.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/arch/m68k/include/asm/uaccess_no.h b/arch/m68k/include/asm/uaccess_no.h
index 3f7f54d5134c..e482c3899ff1 100644
--- a/arch/m68k/include/asm/uaccess_no.h
+++ b/arch/m68k/include/asm/uaccess_no.h
@@ -101,13 +101,21 @@ extern int __get_user_bad(void);
: "=d" (x) \
: "m" (*__ptr(ptr)))
-#define copy_from_user(to, from, n) (memcpy(to, from, n), 0)
-#define copy_to_user(to, from, n) (memcpy(to, from, n), 0)
+static inline unsigned long
+raw_copy_from_user(void *to, const void __user *from, unsigned long n)
+{
+ memcpy(to, (__force const void *)from, n);
+ return 0;
+}
-#define __copy_from_user(to, from, n) copy_from_user(to, from, n)
-#define __copy_to_user(to, from, n) copy_to_user(to, from, n)
-#define __copy_to_user_inatomic __copy_to_user
-#define __copy_from_user_inatomic __copy_from_user
+static inline unsigned long
+raw_copy_to_user(void __user *to, const void *from, unsigned long n)
+{
+ memcpy((__force void *)to, from, n);
+ return 0;
+}
+#define INLINE_COPY_FROM_USER
+#define INLINE_COPY_TO_USER
/*
* Copy a null terminated string from userspace.