]> git.ipfire.org Git - thirdparty/linux.git/commit
alpha: Remove arch-specific strncpy() implementation
authorKees Cook <kees@kernel.org>
Mon, 23 Mar 2026 01:15:40 +0000 (01:15 +0000)
committerKees Cook <kees@kernel.org>
Thu, 18 Jun 2026 23:37:12 +0000 (16:37 -0700)
commit4cb5e246e65cd497155370bbca54c8f5e3a4105f
treed1586bfa71b12098a81aef2a2d8f4c74cefa09c9
parent9c87e61e3c5797277407ba5eae4eac8a52be3fa3
alpha: Remove arch-specific strncpy() implementation

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

The __stxncpy helper (stxncpy.S/ev6-stxncpy.S) is retained as it is
still used by strncat.

Link: https://github.com/KSPP/linux/issues/90
Signed-off-by: Kees Cook <kees@kernel.org>
arch/alpha/include/asm/string.h
arch/alpha/lib/strncpy.S [deleted file]
arch/alpha/lib/styncpy.S