Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>
To: linux-spi@vger.kernel.org, olteanv@gmail.com, broonie@kernel.org
Cc: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>,
	Han Xu <han.xu@nxp.com>, Shawn Guo <shawnguo@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	Haibo Chen <haibo.chen@nxp.com>,
	Yogesh Gaur <yogeshgaur.83@gmail.com>,
	imx@lists.linux.dev, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/4] spi: spi-fsl-qspi: Fix casting warnings
Date: Fri, 27 Sep 2024 18:58:33 +0530	[thread overview]
Message-ID: <20240927132944.19285-2-hardevsinh.palaniya@siliconsignals.io> (raw)
In-Reply-To: <20240927132944.19285-1-hardevsinh.palaniya@siliconsignals.io>

Sparse warnings:

drivers/spi/spi-fsl-qspi.c:635:25: warning: cast from restricted __be32

Signed-off-by: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io>
---
 drivers/spi/spi-fsl-qspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-fsl-qspi.c b/drivers/spi/spi-fsl-qspi.c
index 79bac30e79af..e4a2a6049e33 100644
--- a/drivers/spi/spi-fsl-qspi.c
+++ b/drivers/spi/spi-fsl-qspi.c
@@ -632,7 +632,7 @@ static int fsl_qspi_readl_poll_tout(struct fsl_qspi *q, void __iomem *base,
 	u32 reg;
 
 	if (!q->devtype_data->little_endian)
-		mask = (u32)cpu_to_be32(mask);
+		mask =(__force u32)cpu_to_be32(mask);
 
 	return readl_poll_timeout(base, reg, !(reg & mask), delay_us,
 				  timeout_us);
-- 
2.43.0



  reply	other threads:[~2024-09-27 13:33 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-27 13:28 [PATCH 1/4] spi: spi-fsl-dspi: Fix casting warnings Hardevsinh Palaniya
2024-09-27 13:28 ` Hardevsinh Palaniya [this message]
2024-09-27 15:40   ` [PATCH 2/4] spi: spi-fsl-qspi: " Frank Li
2024-09-28  6:11     ` Hardevsinh Palaniya
2024-09-30  5:21       ` Hardevsinh Palaniya
2024-09-27 13:28 ` [PATCH 3/4] spi: spi-imx: " Hardevsinh Palaniya
2024-09-27 16:53   ` Frank Li
2024-09-28  6:16     ` Hardevsinh Palaniya
2024-09-27 13:28 ` [PATCH 4/4] spi: spi-nxp-fspi: " Hardevsinh Palaniya
2024-09-27 15:47   ` Frank Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240927132944.19285-2-hardevsinh.palaniya@siliconsignals.io \
    --to=hardevsinh.palaniya@siliconsignals.io \
    --cc=broonie@kernel.org \
    --cc=festevam@gmail.com \
    --cc=haibo.chen@nxp.com \
    --cc=han.xu@nxp.com \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    --cc=yogeshgaur.83@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox