summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/lib/Makefile
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2023-05-06 17:10:36 -0700
committerMax Filippov <jcmvbkbc@gmail.com>2023-05-12 09:44:12 -0700
commit034f4a7877c32a8efd6beee4d71ed14e424499a9 (patch)
treeeedd53678d79666df2fc9ca6975685910e598b0c /arch/xtensa/lib/Makefile
parent9c2cc74fb31ec76b8b118c97041a6a154a3ff219 (diff)
downloadlinux-stable-034f4a7877c32a8efd6beee4d71ed14e424499a9.tar.gz
linux-stable-034f4a7877c32a8efd6beee4d71ed14e424499a9.tar.bz2
linux-stable-034f4a7877c32a8efd6beee4d71ed14e424499a9.zip
xtensa: add __bswap{si,di}2 helpers
gcc-13 may generate calls for __bswap{si,di}2. This breaks the kernel build when optimization for size is selected. Add __bswap{si,di}2 helpers to fix that. Cc: stable@vger.kernel.org Fixes: 19c5699f9aff ("xtensa: don't link with libgcc") Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/lib/Makefile')
-rw-r--r--arch/xtensa/lib/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/lib/Makefile b/arch/xtensa/lib/Makefile
index 7ecef0519a27..c9c2614188f7 100644
--- a/arch/xtensa/lib/Makefile
+++ b/arch/xtensa/lib/Makefile
@@ -4,7 +4,7 @@
#
lib-y += memcopy.o memset.o checksum.o \
- ashldi3.o ashrdi3.o lshrdi3.o \
+ ashldi3.o ashrdi3.o bswapdi2.o bswapsi2.o lshrdi3.o \
divsi3.o udivsi3.o modsi3.o umodsi3.o mulsi3.o umulsidi3.o \
usercopy.o strncpy_user.o strnlen_user.o
lib-$(CONFIG_PCI) += pci-auto.o