Commit 33ab2da8 authored by Al Viro's avatar Al Viro

8300: switch to RAW_COPY_USER

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent d597580d
...@@ -22,6 +22,7 @@ config H8300 ...@@ -22,6 +22,7 @@ config H8300
select HAVE_ARCH_KGDB select HAVE_ARCH_KGDB
select HAVE_ARCH_HASH select HAVE_ARCH_HASH
select CPU_NO_EFFICIENT_FFS select CPU_NO_EFFICIENT_FFS
select ARCH_HAS_RAW_COPY_USER
config RWSEM_GENERIC_SPINLOCK config RWSEM_GENERIC_SPINLOCK
def_bool y def_bool y
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
#include <linux/string.h> #include <linux/string.h>
static inline __must_check long __copy_from_user(void *to, static inline __must_check unsigned long
const void __user * from, unsigned long n) raw_copy_from_user(void *to, const void __user * from, unsigned long n)
{ {
if (__builtin_constant_p(n)) { if (__builtin_constant_p(n)) {
switch(n) { switch(n) {
...@@ -24,8 +24,8 @@ static inline __must_check long __copy_from_user(void *to, ...@@ -24,8 +24,8 @@ static inline __must_check long __copy_from_user(void *to,
return 0; return 0;
} }
static inline __must_check long __copy_to_user(void __user *to, static inline __must_check unsigned long
const void *from, unsigned long n) raw_copy_to_user(void __user *to, const void *from, unsigned long n)
{ {
if (__builtin_constant_p(n)) { if (__builtin_constant_p(n)) {
switch(n) { switch(n) {
...@@ -46,6 +46,8 @@ static inline __must_check long __copy_to_user(void __user *to, ...@@ -46,6 +46,8 @@ static inline __must_check long __copy_to_user(void __user *to,
memcpy((void __force *)to, from, n); memcpy((void __force *)to, from, n);
return 0; return 0;
} }
#define INLINE_COPY_FROM_USER
#define INLINE_COPY_TO_USER
#include <asm-generic/uaccess.h> #include <asm-generic/uaccess.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment