xtensa: add __umulsidi3 helper
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 5 Dec 2022 21:19:21 +0000 (13:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jan 2023 10:11:46 +0000 (11:11 +0100)
commitaa3e7a48e921aeb6a0e01c3a474db50de6c9bcac
treec36431ea4a080ed1a160aaa5bb11e6b64b08de80
parent9dd6b35e2bcd2c64b2a830aa8bda0a0ff6c58705
xtensa: add __umulsidi3 helper

commit 8939c58d68f97ce530f02d46c9f2b56c3ec88399 upstream.

xtensa gcc-13 has changed multiplication handling and may now use
__umulsidi3 helper where it used to use __muldi3. As a result building
the kernel with the new gcc may fail with the following error:

    linux/init/main.c:1287: undefined reference to `__umulsidi3'

Fix the build by providing __umulsidi3 implementation for xtensa.

Cc: stable@vger.kernel.org # 5.18+
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/umulsidi3.S [new file with mode: 0644]