diff options
author | Vineet Gupta <vgupta@kernel.org> | 2021-08-14 03:48:08 +0300 |
---|---|---|
committer | Vineet Gupta <vgupta@kernel.org> | 2023-08-17 22:40:26 +0300 |
commit | 80bfe134f0306a1ef1f6c4e884ec17b74471d4a4 (patch) | |
tree | 39d294bd049abc325c518a8f9c8c7bb154810c7f /arch/arc/include/asm | |
parent | 42f51fb24fd39cc547c086ab3d8a314cc603a91c (diff) | |
download | linux-80bfe134f0306a1ef1f6c4e884ec17b74471d4a4.tar.xz |
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>
Diffstat (limited to 'arch/arc/include/asm')
-rw-r--r-- | arch/arc/include/asm/uaccess.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/arch/arc/include/asm/uaccess.h b/arch/arc/include/asm/uaccess.h index 99712471c96a..d2da159bb80a 100644 --- a/arch/arc/include/asm/uaccess.h +++ b/arch/arc/include/asm/uaccess.h @@ -584,7 +584,7 @@ raw_copy_to_user(void __user *to, const void *from, unsigned long n) 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; unsigned char *d_char = to; @@ -626,17 +626,10 @@ static inline unsigned long __arc_clear_user(void __user *to, unsigned long n) return res; } -#ifndef CONFIG_CC_OPTIMIZE_FOR_SIZE - #define INLINE_COPY_TO_USER #define INLINE_COPY_FROM_USER -#define __clear_user(d, n) __arc_clear_user(d, n) -#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 +#define __clear_user __clear_user #include <asm-generic/uaccess.h> |