Re: [PATCH] dmaengine: dmatest: Explicitly cast divisor to u32

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>





[Index of Archives]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux PCI]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux