ARC: uaccess: remove arc specific out-of-line handles for -Os
Everything is now out-of-line in lib/usercopy.c Signed-off-by: Vineet Gupta <vgupta@kernel.org>
This commit is contained in:
parent
42f51fb24f
commit
80bfe134f0
@ -584,7 +584,7 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline unsigned long __arc_clear_user(void __user *to, unsigned long n)
|
static inline unsigned long __clear_user(void __user *to, unsigned long n)
|
||||||
{
|
{
|
||||||
long res = n;
|
long res = n;
|
||||||
unsigned char *d_char = to;
|
unsigned char *d_char = to;
|
||||||
@ -626,17 +626,10 @@ static inline unsigned long __arc_clear_user(void __user *to, unsigned long n)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CONFIG_CC_OPTIMIZE_FOR_SIZE
|
|
||||||
|
|
||||||
#define INLINE_COPY_TO_USER
|
#define INLINE_COPY_TO_USER
|
||||||
#define INLINE_COPY_FROM_USER
|
#define INLINE_COPY_FROM_USER
|
||||||
|
|
||||||
#define __clear_user(d, n) __arc_clear_user(d, n)
|
#define __clear_user __clear_user
|
||||||
#else
|
|
||||||
extern unsigned long arc_clear_user_noinline(void __user *to,
|
|
||||||
unsigned long n);
|
|
||||||
#define __clear_user(d, n) arc_clear_user_noinline(d, n)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <asm-generic/uaccess.h>
|
#include <asm-generic/uaccess.h>
|
||||||
|
|
||||||
|
@ -22,14 +22,3 @@ int fixup_exception(struct pt_regs *regs)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
|
|
||||||
|
|
||||||
unsigned long arc_clear_user_noinline(void __user *to,
|
|
||||||
unsigned long n)
|
|
||||||
{
|
|
||||||
return __arc_clear_user(to, n);
|
|
||||||
}
|
|
||||||
EXPORT_SYMBOL(arc_clear_user_noinline);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user