Re: [PATCH v2 1/2] spi: spi-fsl-dspi: Fix casting warnings

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

 



On Tue, Oct 08, 2024 at 11:25:45AM +0530, Hardevsinh Palaniya wrote:
> Sparse warnings:
> 
> drivers/spi/spi-fsl-dspi.c:283:17: warning: incorrect type in assignment (different base types)
> drivers/spi/spi-fsl-dspi.c:283:17:    expected unsigned int [usertype]
> drivers/spi/spi-fsl-dspi.c:283:17:    got restricted __be32 [usertype]
> drivers/spi/spi-fsl-dspi.c:289:28: warning: cast to restricted __be32
> drivers/spi/spi-fsl-dspi.c:289:28: warning: cast to restricted __be32
> drivers/spi/spi-fsl-dspi.c:289:28: warning: cast to restricted __be32
> drivers/spi/spi-fsl-dspi.c:289:28: warning: cast to restricted __be32
> drivers/spi/spi-fsl-dspi.c:289:28: warning: cast to restricted __be32
> drivers/spi/spi-fsl-dspi.c:289:28: warning: cast to restricted __be32
> drivers/spi/spi-fsl-dspi.c:295:17: warning: incorrect type in assignment (different base types)
> drivers/spi/spi-fsl-dspi.c:295:17:    expected unsigned int [usertype]
> drivers/spi/spi-fsl-dspi.c:295:17:    got restricted __be16 [usertype]
> drivers/spi/spi-fsl-dspi.c:301:28: warning: cast to restricted __be16
> drivers/spi/spi-fsl-dspi.c:301:28: warning: cast to restricted __be16
> drivers/spi/spi-fsl-dspi.c:301:28: warning: cast to restricted __be16
> drivers/spi/spi-fsl-dspi.c:301:28: warning: cast to restricted __be16
> 
> Signed-off-by: Hardevsinh Palaniya <hardevsinh.palaniya@xxxxxxxxxxxxxxxxx>
> ---

Reviewed-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>
Tested-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>




[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 Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux