]> git.itanic.dy.fi Git - linux-stable/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)
commitbd90ac0002d1a4e480d6afb0dd84bf0793913c75
tree66708e366e1b2ff8ab89b6c7d79ed460207c5123
parent522bbbfcb612b11f1c3ec4205c6300d16f878f81
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: 19c5699f9aff ("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]