acrn-kernel/arch/xtensa/lib
Randy Dunlap 6438653ad1 xtensa: umulsidi3: fix conditional expression
[ Upstream commit 9aecda97ec ]

Even when a variant has one or more of these defines set to 1, the
multiplier code paths are not used. Change the expression so that the
correct code paths are used.

arch/xtensa/lib/umulsidi3.S:44:38: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef]
   44 | #if defined(__XTENSA_CALL0_ABI__) && XCHAL_NO_MUL
arch/xtensa/lib/umulsidi3.S:145:38: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef]
  145 | #if defined(__XTENSA_CALL0_ABI__) && XCHAL_NO_MUL
arch/xtensa/lib/umulsidi3.S:159:5: warning: "XCHAL_NO_MUL" is not defined, evaluates to 0 [-Wundef]
  159 | #if XCHAL_NO_MUL

Fixes: 8939c58d68 ("xtensa: add __umulsidi3 helper")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Chris Zankel <chris@zankel.net>
Cc: Max Filippov <jcmvbkbc@gmail.com>
Message-Id: <20230920052139.10570-16-rdunlap@infradead.org>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-10-06 14:56:48 +02:00
..
Makefile xtensa: add __bswap{si,di}2 helpers 2023-05-30 14:03:18 +01:00
ashldi3.S xtensa: add helpers for division, remainder and shifts 2022-03-09 14:02:40 -08:00
ashrdi3.S xtensa: add helpers for division, remainder and shifts 2022-03-09 14:02:40 -08:00
bswapdi2.S xtensa: add __bswap{si,di}2 helpers 2023-05-30 14:03:18 +01:00
bswapsi2.S xtensa: add __bswap{si,di}2 helpers 2023-05-30 14:03:18 +01:00
checksum.S xtensa: propagate the calling conventions change down into csum_partial_copy_generic() 2020-08-20 15:45:21 -04:00
divsi3.S xtensa: add helpers for division, remainder and shifts 2022-03-09 14:02:40 -08:00
kcsan-stubs.c xtensa: enable KCSAN 2022-05-01 19:51:22 -07:00
lshrdi3.S xtensa: add helpers for division, remainder and shifts 2022-03-09 14:02:40 -08:00
memcopy.S xtensa: localize labels used in memmove 2022-05-01 19:51:20 -07:00
memset.S xtensa: abstract 'entry' and 'retw' in assembly code 2019-07-08 10:04:48 -07:00
modsi3.S xtensa: add helpers for division, remainder and shifts 2022-03-09 14:02:40 -08:00
mulsi3.S xtensa: add helpers for division, remainder and shifts 2022-03-09 14:02:40 -08:00
pci-auto.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
strncpy_user.S xtensa: don't use a12 in strncpy_user 2021-10-18 22:19:34 -07:00
strnlen_user.S xtensa: abstract 'entry' and 'retw' in assembly code 2019-07-08 10:04:48 -07:00
udivsi3.S xtensa: add helpers for division, remainder and shifts 2022-03-09 14:02:40 -08:00
umodsi3.S xtensa: add helpers for division, remainder and shifts 2022-03-09 14:02:40 -08:00
umulsidi3.S xtensa: umulsidi3: fix conditional expression 2023-10-06 14:56:48 +02:00
usercopy.S xtensa: don't use a12 in __xtensa_copy_user in call0 ABI 2021-10-18 22:19:34 -07:00