mirror of
https://github.com/torvalds/linux
synced 2026-07-22 10:10:47 +09:00
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>
11 lines
168 B
ArmAsm
11 lines
168 B
ArmAsm
#ifdef CONFIG_ALPHA_EV67
|
|
#include "ev67-strncat.S"
|
|
#else
|
|
#include "strncat.S"
|
|
#endif
|
|
#ifdef CONFIG_ALPHA_EV6
|
|
#include "ev6-stxncpy.S"
|
|
#else
|
|
#include "stxncpy.S"
|
|
#endif
|