Re: [PATCH] workqueue: avoid unguarded 64-bit division
From: Breno Leitao
Date: Tue Apr 07 2026 - 10:04:41 EST
On Thu, Apr 02, 2026 at 10:59:03PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> The printk() requires a division that is not allowed on 32-bit architectures:
>
> x86_64-linux-ld: lib/test_workqueue.o: in function `test_workqueue_init':
> test_workqueue.c:(.init.text+0x36f): undefined reference to `__udivdi3'
>
> Use div_u64() to print the resulting elapsed microseconds.
>
> Fixes: 24b2e73f9700 ("workqueue: add test_workqueue benchmark module")
> Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx>
Reviewed-by: Breno Leitao <leitao@xxxxxxxxxx>