]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: add __bswap{si,di}2 helpers
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 7 May 2023 00:10:36 +0000 (17:10 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 13:03:18 +0000 (14:03 +0100)
commit78d9b7eb97fc90c7469b3111794e2e2105f6626b
tree66708e366e1b2ff8ab89b6c7d79ed460207c5123
parent1d0a85b3cd1fc63b6c0e6be1c4e9e3b9e21cc639
xtensa: add __bswap{si,di}2 helpers

commit 034f4a7877c32a8efd6beee4d71ed14e424499a9 upstream.

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: d475bc924a19 ("xtensa: don't link with libgcc")
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/kernel/xtensa_ksyms.c
arch/xtensa/lib/Makefile
arch/xtensa/lib/bswapdi2.S [new file with mode: 0644]
arch/xtensa/lib/bswapsi2.S [new file with mode: 0644]