Re: [PATCH] dmaengine: loongson2-apb: Change GENMASK to GENMASK_ULL

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

 



On Mon, 28 Oct 2024 17:34:13 +0800, Binbin Zhou wrote:
> Fix the following smatch static checker warning:
> 
> drivers/dma/loongson2-apb-dma.c:189 ls2x_dma_write_cmd()
> warn: was expecting a 64 bit value instead of '~(((0)) + (((~((0))) - (((1)) << (0)) + 1) & (~((0)) >> ((8 * 4) - 1 - (4)))))'
> 
> The GENMASK macro used "unsigned long", which caused build issues when
> using a 32-bit toolchain because it would try to access bits > 31. This
> patch switches GENMASK to GENMASK_ULL, which uses "unsigned long long".
> 
> [...]

Applied, thanks!

[1/1] dmaengine: loongson2-apb: Change GENMASK to GENMASK_ULL
      commit: 4b65d5322e1d8994acfdb9b867aa00bdb30d177b

Best regards,
-- 
~Vinod






[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