Re: [PATCH] watchdog: aspeed: fix 64-bit division
From: Andrew Jeffery
Date: Mon Mar 17 2025 - 20:30:48 EST
On Fri, 2025-03-14 at 17:02 +0100, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> 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@xxxxxxxx>
Reviewed-by: Andrew Jeffery <andrew@xxxxxxxxxxxxxxxxxxxx>
Thanks,
Andrew