Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit 74e2537

Browse files
committed
xtensa: only build __strncpy_user with CONFIG_ARCH_HAS_STRNCPY_FROM_USER
__strncpy_user is only used when CONFIG_ARCH_HAS_STRNCPY_FROM_USER is enabled so don't build the source when it's off. Signed-off-by: Max Filippov <[email protected]>
1 parent e7cb083 commit 74e2537

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/xtensa/lib/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
lib-y += memcopy.o memset.o checksum.o \
77
ashldi3.o ashrdi3.o bswapdi2.o bswapsi2.o lshrdi3.o \
88
divsi3.o udivsi3.o modsi3.o umodsi3.o mulsi3.o umulsidi3.o \
9-
usercopy.o strncpy_user.o strnlen_user.o
9+
usercopy.o strnlen_user.o
10+
lib-$(CONFIG_ARCH_HAS_STRNCPY_FROM_USER) += strncpy_user.o
1011
lib-$(CONFIG_PCI) += pci-auto.o
1112
lib-$(CONFIG_KCSAN) += kcsan-stubs.o
1213
KCSAN_SANITIZE_kcsan-stubs.o := n

0 commit comments

Comments
 (0)