linux/arch/alpha/lib
Kees Cook 4cb5e246e6 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 [1]
Signed-off-by: Kees Cook <kees@kernel.org>
2026-06-18 16:37:12 -07:00
..
callback_srm.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
checksum.c The usual shower of singleton fixes and minor series all over MM, 2024-05-19 09:21:03 -07:00
clear_page.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
clear_user.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
copy_page.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
copy_user.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
csum_ipv6_magic.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
csum_partial_copy.c net: unexport csum_and_copy_{from,to}_user 2022-04-29 14:37:59 -07:00
dbg_current.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dbg_stackcheck.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
dbg_stackkill.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
divide.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-clear_page.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-clear_user.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-copy_page.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-copy_user.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-csum_ipv6_magic.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-divide.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-memchr.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-memcpy.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-memset.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev6-stxcpy.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ev6-stxncpy.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ev67-strcat.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev67-strchr.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev67-strlen.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev67-strncat.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
ev67-strrchr.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
fls.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fpreg.c alpha: remove duplicate included header file 2025-01-12 20:21:07 -08:00
Makefile alpha: fix modversions for strcpy() et.al. 2024-05-03 22:09:09 +02:00
memchr.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
memcpy.c alpha: missing includes 2024-05-03 22:09:30 +02:00
memmove.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
memset.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
srm_printk.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
srm_puts.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stacktrace.c alpha: Implement "current_stack_pointer" 2023-02-14 12:36:22 -05:00
strcat.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
strchr.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
strcpy.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
strlen.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
strncat.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
strrchr.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00
stxcpy.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stxncpy.S License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stycpy.S alpha: fix modversions for strcpy() et.al. 2024-05-03 22:09:09 +02:00
styncpy.S alpha: Remove arch-specific strncpy() implementation 2026-06-18 16:37:12 -07:00
udelay.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
udiv-qrnnd.S alpha: replace #include <asm/export.h> with #include <linux/export.h> 2023-08-22 18:12:46 +09:00