public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Breno Leitao <leitao@debian.org>
To: Arnd Bergmann <arnd@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Tejun Heo <tj@kernel.org>,  Arnd Bergmann <arnd@arndb.de>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] workqueue: avoid unguarded 64-bit division
Date: Tue, 7 Apr 2026 07:03:00 -0700	[thread overview]
Message-ID: <adUOhhHV2CIqjzGv@gmail.com> (raw)
In-Reply-To: <20260402205913.1953402-1-arnd@kernel.org>

On Thu, Apr 02, 2026 at 10:59:03PM +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
> 
> 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@arndb.de>

Reviewed-by: Breno Leitao <leitao@debian.org>

      parent reply	other threads:[~2026-04-07 14:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-02 20:59 [PATCH] workqueue: avoid unguarded 64-bit division Arnd Bergmann
2026-04-03 17:50 ` Tejun Heo
2026-04-07 14:03 ` Breno Leitao [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=adUOhhHV2CIqjzGv@gmail.com \
    --to=leitao@debian.org \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=arnd@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox