[PATCH] watchdog: aspeed: fix 64-bit division

Andrew Jeffery andrew at codeconstruct.com.au
Mon Mar 17 17:30:21 PDT 2025


On Fri, 2025-03-14 at 17:02 +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd at arndb.de>
> 
> On 32-bit architectures, the new calculation causes a build failure:
> 
> ld.lld-21: error: undefined symbol: __aeabi_uldivmod
> 
> Since neither value is ever larger than a register, cast both
> sides into a uintptr_t.
> 
> Fixes: 5c03f9f4d362 ("watchdog: aspeed: Update bootstatus handling")
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>

Reviewed-by: Andrew Jeffery <andrew at codeconstruct.com.au>

Thanks,

Andrew




More information about the linux-arm-kernel mailing list