]> git.ipfire.org Git - thirdparty/linux.git/commit
xtensa: Remove arch-specific strncpy() implementation
authorKees Cook <kees@kernel.org>
Mon, 23 Mar 2026 01:18:34 +0000 (01:18 +0000)
committerKees Cook <kees@kernel.org>
Thu, 18 Jun 2026 23:37:13 +0000 (16:37 -0700)
commit58c4ce8cd6cd1fbf1bca2e1d1f42f9e2899fa934
tree0ebbdf4a4ec015411f9ac0aa1eae5848a62154e4
parentdfe05fcca83d794cd76da1b6deb2dcd082aa1174
xtensa: Remove arch-specific strncpy() implementation

strncpy() has no remaining callers in the kernel[1]. Remove the
xtensa-specific inline assembly implementation and __HAVE_ARCH_STRNCPY
define, falling back to the generic version in lib/string.c.

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