forked from luck/tmp_suning_uos_patched
arc: switch to RAW_COPY_USER
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
3a1e37ae00
commit
839cc2954c
|
@ -44,6 +44,7 @@ config ARC
|
||||||
select HAVE_GENERIC_DMA_COHERENT
|
select HAVE_GENERIC_DMA_COHERENT
|
||||||
select HAVE_KERNEL_GZIP
|
select HAVE_KERNEL_GZIP
|
||||||
select HAVE_KERNEL_LZMA
|
select HAVE_KERNEL_LZMA
|
||||||
|
select ARCH_HAS_RAW_COPY_USER
|
||||||
|
|
||||||
config MIGHT_HAVE_PCI
|
config MIGHT_HAVE_PCI
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -721,8 +721,8 @@ static inline long __arc_strnlen_user(const char __user *s, long n)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CONFIG_CC_OPTIMIZE_FOR_SIZE
|
#ifndef CONFIG_CC_OPTIMIZE_FOR_SIZE
|
||||||
#define __copy_from_user(t, f, n) __arc_copy_from_user(t, f, n)
|
#define raw_copy_from_user __arc_copy_from_user
|
||||||
#define __copy_to_user(t, f, n) __arc_copy_to_user(t, f, n)
|
#define raw_copy_to_user __arc_copy_to_user
|
||||||
#define __clear_user(d, n) __arc_clear_user(d, n)
|
#define __clear_user(d, n) __arc_clear_user(d, n)
|
||||||
#define __strncpy_from_user(d, s, n) __arc_strncpy_from_user(d, s, n)
|
#define __strncpy_from_user(d, s, n) __arc_strncpy_from_user(d, s, n)
|
||||||
#define __strnlen_user(s, n) __arc_strnlen_user(s, n)
|
#define __strnlen_user(s, n) __arc_strnlen_user(s, n)
|
||||||
|
@ -737,8 +737,8 @@ extern long arc_strncpy_from_user_noinline (char *dst, const char __user *src,
|
||||||
long count);
|
long count);
|
||||||
extern long arc_strnlen_user_noinline(const char __user *src, long n);
|
extern long arc_strnlen_user_noinline(const char __user *src, long n);
|
||||||
|
|
||||||
#define __copy_from_user(t, f, n) arc_copy_from_user_noinline(t, f, n)
|
#define raw_copy_from_user arc_copy_from_user_noinline
|
||||||
#define __copy_to_user(t, f, n) arc_copy_to_user_noinline(t, f, n)
|
#define raw_copy_to_user arc_copy_to_user_noinline
|
||||||
#define __clear_user(d, n) arc_clear_user_noinline(d, n)
|
#define __clear_user(d, n) arc_clear_user_noinline(d, n)
|
||||||
#define __strncpy_from_user(d, s, n) arc_strncpy_from_user_noinline(d, s, n)
|
#define __strncpy_from_user(d, s, n) arc_strncpy_from_user_noinline(d, s, n)
|
||||||
#define __strnlen_user(s, n) arc_strnlen_user_noinline(s, n)
|
#define __strnlen_user(s, n) arc_strnlen_user_noinline(s, n)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user