]> git.hungrycats.org Git - linux/commit
powerpc: Remove arch-specific strncpy() implementation
authorKees Cook <kees@kernel.org>
Mon, 23 Mar 2026 01:17:19 +0000 (01:17 +0000)
committerKees Cook <kees@kernel.org>
Thu, 18 Jun 2026 23:37:13 +0000 (16:37 -0700)
commit7eda356658cbfba9aea48bddd12b97e562c21188
tree7ddeb6a1ca758b24696912a15508e714b079068d
parentad3242a9acaa01cc9ecc6e483341697ca4f77461
powerpc: Remove arch-specific strncpy() implementation

strncpy() has no remaining callers in the kernel[1]. Remove the
powerpc-specific assembly implementation from both the kernel
(arch/powerpc/lib/string.S) and the boot wrapper
(arch/powerpc/boot/string.S), along with the __HAVE_ARCH_STRNCPY
define and declaration, falling back to the generic version in
lib/string.c.

The boot wrapper's strncpy had no callers in arch/powerpc/boot/.

Link: https://github.com/KSPP/linux/issues/90
Signed-off-by: Kees Cook <kees@kernel.org>
arch/powerpc/boot/string.S
arch/powerpc/boot/string.h
arch/powerpc/include/asm/string.h
arch/powerpc/lib/string.S