Re: linux-next: Tree for Dec 5 (soc/qcom/qcom_stats)

From: Randy Dunlap
Date: Tue Dec 05 2023 - 12:29:10 EST




On 12/5/23 09:17, Randy Dunlap wrote:
>
>
> On 12/4/23 18:57, Stephen Rothwell wrote:
>> Hi all,
>>
>> Changes since 20231204:
>>
>
> on powerpc 32-bit:
>
> ERROR: modpost: "__udivdi3" [drivers/soc/qcom/qcom_stats.ko] undefined!
>
>

Hi,

Looks like this is coming from the use of mult_frac() if I am reading the
generated .s file correctly:

# ../drivers/soc/qcom/qcom_stats.c:224: entry[i].dur = mult_frac(MSEC_PER_SEC, entry[i].dur, ARCH_TIMER_FREQ);
mulhwu 3,22,4 # tmp194, tmp190, MEM[(long long unsigned int *)_107 + 16B]
mulli 9,9,1000 # tmp185, MEM[(long long unsigned int *)_107 + 16B],
mulli 4,4,1000 # tmp3, MEM[(long long unsigned int *)_107 + 16B],
add 3,9,3 #, tmp185, tmp194
bl __udivdi3 #

--
~Randy