microblaze: use generic strncpy/strnlen from_user
authorArnd Bergmann <arnd@arndb.de>
Thu, 16 Jan 2020 14:58:41 +0000 (15:58 +0100)
committerArnd Bergmann <arnd@arndb.de>
Tue, 27 Jul 2021 21:01:13 +0000 (23:01 +0200)
commitb26b181651f3214fa2383411fb85029b7f3e1788
tree06163a94c86fc93e2c7ef7c70caeb651b8da2859
parent0cd1151886933d4845db02b3d09ad4df62d44c50
microblaze: use generic strncpy/strnlen from_user

Remove the microblaze implemenation of strncpy/strnlen and instead use
the generic versions.  The microblaze version is fairly slow because it
always does byte accesses even for aligned data, and it lacks a checks
for user_addr_max().

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/microblaze/Kconfig
arch/microblaze/include/asm/uaccess.h
arch/microblaze/kernel/microblaze_ksyms.c
arch/microblaze/lib/uaccess_old.S