]> www.infradead.org Git - users/jedix/linux-maple.git/commit
watchdog: aspeed: fix 64-bit division
authorArnd Bergmann <arnd@arndb.de>
Fri, 14 Mar 2025 16:02:44 +0000 (17:02 +0100)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Sun, 16 Mar 2025 10:00:34 +0000 (11:00 +0100)
commit48a136639ec233614a61653e19f559977d5da2b5
tree8f583baa5b86479b2f9d9b1786e1557bb5982aa4
parentad3746700ae238a96a9a4244d02a2e8eb00f157e
watchdog: aspeed: fix 64-bit division

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@arndb.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20250314160248.502324-1-arnd@kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/aspeed_wdt.c