Re: [PATCH] power: supply: use ktime_divns() to avoid 64-bit division
From: Sebastian Reichel
Date: Sun Nov 02 2025 - 19:51:30 EST
On Wed, 15 Oct 2025 09:56:31 +0200, Michal Kubecek wrote:
> The build of intel_dc_ti_battery module on i386 (32-bit) fails with
>
> ERROR: modpost: "__udivdi3" [drivers/power/supply/intel_dc_ti_battery.ko]
>
> This is caused by 64-bit division of ktime values by NSEC_PER_USEC. Use
> ktime_divns() helper which handles the division correctly on 32-bit
> architectures.
>
> [...]
Applied, thanks!
[1/1] power: supply: use ktime_divns() to avoid 64-bit division
commit: 3fd1695f5da0538ef72e1268baa00528b589347a
Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>