[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d9014b7b-2eca-97ba-7e04-4f7f99e88c9b@kernel.dk>
Date: Tue, 10 Jul 2018 12:28:09 -0600
From: Jens Axboe <axboe@...nel.dk>
To: Arnd Bergmann <arnd@...db.de>
Cc: Tejun Heo <tj@...nel.org>, Josef Bacik <jbacik@...com>,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] block: iolatency: avoid 64-bit division
On 7/10/18 9:21 AM, Arnd Bergmann wrote:
> On 32-bit architectures, dividing a 64-bit number needs to use the
> do_div() function or something like it to avoid a link failure:
>
> block/blk-iolatency.o: In function `iolatency_prfill_limit':
> blk-iolatency.c:(.text+0x8cc): undefined reference to `__aeabi_uldivmod'
>
> Using div_u64() gives us the best output and avoids the need for an
> explicit cast.
Applied, thanks Arnd.
--
Jens Axboe
Powered by blists - more mailing lists