]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARC: uaccess: use optimized generic __strnlen_user/__strncpy_from_user
authorVineet Gupta <vgupta@kernel.org>
Mon, 13 Jan 2020 23:24:34 +0000 (15:24 -0800)
committerVineet Gupta <vgupta@kernel.org>
Thu, 17 Aug 2023 19:40:26 +0000 (12:40 -0700)
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>
arch/arc/Kconfig

index 96cf8720bb93910d3171c2fbe89d127166bbab23..47b4acc7d0c9cd9a452edc5a57eb21151c16b740 100644 (file)
@@ -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