]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit447f9a6e479c65c2b74c33202471073eda7fd37b
treec36431ea4a080ed1a160aaa5bb11e6b64b08de80
parentf2e254925cfcf79c8a2d8790a5179824603a90e0
xtensa: add __umulsidi3 helper

commit 9b443e418a3c7c513cf8d6d24a9abf485c83ccbd 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]