[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241008131343.bu52qrnd2nrlkynf@skbuf>
Date: Tue, 8 Oct 2024 16:13:43 +0300
From: Vladimir Oltean <vladimir.oltean@....com>
To: Hardevsinh Palaniya <hardevsinh.palaniya@...iconsignals.io>
Cc: broonie@...nel.org, frank.li@....com, shawnguo@...nel.org,
Sascha Hauer <s.hauer@...gutronix.de>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>, linux-spi@...r.kernel.org,
imx@...ts.linux.dev, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org
Subject: Re: [PATCH v2 1/2] spi: spi-fsl-dspi: Fix casting warnings
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@...iconsignals.io>
> ---
Reviewed-by: Vladimir Oltean <vladimir.oltean@....com>
Tested-by: Vladimir Oltean <vladimir.oltean@....com>
Powered by blists - more mailing lists