asm-generic/uaccess.h: remove __strncpy_from_user/__strnlen_user
authorArnd Bergmann <arnd@arndb.de>
Thu, 16 Jan 2020 12:18:38 +0000 (13:18 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 23 Jul 2021 12:39:56 +0000 (14:39 +0200)
commitf27180dd63e1e6eca3230b9d3fdcc33564a81117
tree32f334f2fad44c2b989b546970e830a165ebc1ce
parent2734d6c1b1a089fb593ef6a23d4b70903526fe0c
asm-generic/uaccess.h: remove __strncpy_from_user/__strnlen_user

This is a preparation for changing over architectures to the
generic implementation one at a time. As there are no callers
of either __strncpy_from_user() or __strnlen_user(), fold these
into the strncpy_from_user() and strnlen_user() functions to make
each implementation independent of the others.

Many of these implementations have known bugs, but the intention
here is to not change behavior at all and stay compatible with
those bugs for the moment.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arc/include/asm/uaccess.h
arch/csky/include/asm/uaccess.h
arch/csky/lib/usercopy.c
arch/hexagon/include/asm/uaccess.h
arch/um/include/asm/uaccess.h
arch/um/kernel/skas/uaccess.c
include/asm-generic/uaccess.h