xtensa: add __umulsidi3 helper
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 5 Dec 2022 21:19:21 +0000 (13:19 -0800)
committerMax Filippov <jcmvbkbc@gmail.com>
Wed, 7 Dec 2022 00:21:26 +0000 (16:21 -0800)
commit8939c58d68f97ce530f02d46c9f2b56c3ec88399
tree2898116b66f2bcb7b4bb60eec05ca6a2d472db44
parentb8c4f4db24368fb6ba6283b9c3a67da04db22751
xtensa: add __umulsidi3 helper

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>
arch/xtensa/kernel/xtensa_ksyms.c
arch/xtensa/lib/Makefile
arch/xtensa/lib/umulsidi3.S [new file with mode: 0644]