diff options
| author | Kees Cook <kees@kernel.org> | 2026-03-23 01:17:59 +0000 |
|---|---|---|
| committer | Kees Cook <kees@kernel.org> | 2026-06-18 16:37:13 -0700 |
| commit | dfe05fcca83d794cd76da1b6deb2dcd082aa1174 (patch) | |
| tree | dd5b6f8dd8a4f4b364326717c18a023bbd16c119 /arch/x86/include | |
| parent | 7eda356658cbfba9aea48bddd12b97e562c21188 (diff) | |
| download | lwn-dfe05fcca83d794cd76da1b6deb2dcd082aa1174.tar.gz lwn-dfe05fcca83d794cd76da1b6deb2dcd082aa1174.zip | |
x86: Remove arch-specific strncpy() implementation
strncpy() has no remaining callers in the kernel[1]. Remove the
x86-32-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 [1]
Signed-off-by: Kees Cook <kees@kernel.org>
Diffstat (limited to 'arch/x86/include')
| -rw-r--r-- | arch/x86/include/asm/string_32.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/include/asm/string_32.h b/arch/x86/include/asm/string_32.h index e9cce169bb4c..43ab6806ab53 100644 --- a/arch/x86/include/asm/string_32.h +++ b/arch/x86/include/asm/string_32.h @@ -9,9 +9,6 @@ #define __HAVE_ARCH_STRCPY extern char *strcpy(char *dest, const char *src); -#define __HAVE_ARCH_STRNCPY -extern char *strncpy(char *dest, const char *src, size_t count); - #define __HAVE_ARCH_STRCAT extern char *strcat(char *dest, const char *src); |
