summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@kernel.org>2020-01-14 02:24:34 +0300
committerVineet Gupta <vgupta@kernel.org>2023-08-17 22:40:26 +0300
commitf798f91e7f5f000285ab11696d3f4af6aa20b869 (patch)
tree40ccddebdb1dc6cd7fffe27133858007992e76d8
parent80bfe134f0306a1ef1f6c4e884ec17b74471d4a4 (diff)
downloadlinux-f798f91e7f5f000285ab11696d3f4af6aa20b869.tar.xz
ARC: uaccess: use optimized generic __strnlen_user/__strncpy_from_user
The existing ARC variants have 2 issues - Use ZOL which may not be present in forthcoming architecture - Byte loop based vs. generic version which is word loop based Signed-off-by: Vineet Gupta <vgupta@kernel.org>
-rw-r--r--arch/arc/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
index 96cf8720bb93..47b4acc7d0c9 100644
--- a/arch/arc/Kconfig
+++ b/arch/arc/Kconfig
@@ -26,6 +26,8 @@ config ARC
select GENERIC_PENDING_IRQ if SMP
select GENERIC_SCHED_CLOCK
select GENERIC_SMP_IDLE_THREAD
+ select GENERIC_STRNCPY_FROM_USER if MMU
+ select GENERIC_STRNLEN_USER if MMU
select HAVE_ARCH_KGDB
select HAVE_ARCH_TRACEHOOK
select HAVE_ARCH_TRANSPARENT_HUGEPAGE if ARC_MMU_V4