lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <172287949457.489137.6420336100082404989.b4-ty@kernel.org>
Date: Mon, 05 Aug 2024 23:08:14 +0530
From: Vinod Koul <vkoul@...nel.org>
To: Thorsten Blum <thorsten.blum@...lux.com>
Cc: dmaengine@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] dmaengine: dmatest: Explicitly cast divisor to u32


On Thu, 11 Jul 2024 15:20:01 +0200, Thorsten Blum wrote:
> As the comment explains, the while loop ensures that runtime fits into
> 32 bits. Since do_div() casts the divisor to u32 anyway, explicitly cast
> runtime to u32 to remove the following Coccinelle/coccicheck warning
> reported by do_div.cocci:
> 
>   WARNING: do_div() does a 64-by-32 division, please consider using div64_s64 instead
> 
> [...]

Applied, thanks!

[1/1] dmaengine: dmatest: Explicitly cast divisor to u32
      commit: da080d987e20a8b20b368c75826226834c9660a3

Best regards,
-- 
Vinod Koul <vkoul@...nel.org>


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ