Linux MultiMedia Card development
 help / color / mirror / Atom feed
* [PATCH V1] mmc: sdhci-uhs2: correction of incorrect type in argument
@ 2024-10-30 11:22 Victor Shih
  2024-10-30 11:22 ` [PATCH V1] mmc: sdhci-uhs2: remove unnecessary variables Victor Shih
  2024-10-30 13:07 ` [PATCH V1] mmc: sdhci-uhs2: correction of incorrect type in argument Adrian Hunter
  0 siblings, 2 replies; 7+ messages in thread
From: Victor Shih @ 2024-10-30 11:22 UTC (permalink / raw)
  To: ulf.hansson, adrian.hunter
  Cc: linux-mmc, linux-kernel, benchuanggli, HL.Liu, Greg.tu,
	Victor Shih, kernel test robot, Ben Chuang, Victor Shih

From: Victor Shih <victor.shih@genesyslogic.com.tw>

There is a type issue in the argument in the __sdhci_uhs2_send_command()
that will generate a warning when building the kernel.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202410260525.ZUuPhMJz-lkp@intel.com/
Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw>
Signed-off-by: Victor Shih <victor.shih@genesyslogic.com.tw>
---
 drivers/mmc/host/sdhci-uhs2.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/mmc/host/sdhci-uhs2.c b/drivers/mmc/host/sdhci-uhs2.c
index 43820eb5a7ea..7f41ca67b069 100644
--- a/drivers/mmc/host/sdhci-uhs2.c
+++ b/drivers/mmc/host/sdhci-uhs2.c
@@ -649,7 +649,8 @@ static void __sdhci_uhs2_send_command(struct sdhci_host *host, struct mmc_comman
 	 * MSB when preparing config read/write commands.
 	 */
 	for (j = 0; j < cmd->uhs2_cmd->payload_len / sizeof(u32); j++) {
-		sdhci_writel(host, *(cmd->uhs2_cmd->payload + j), SDHCI_UHS2_CMD_PACKET + i);
+		sdhci_writel(host, *(__force u32 *)(cmd->uhs2_cmd->payload + j),
+			     SDHCI_UHS2_CMD_PACKET + i);
 		i += 4;
 	}
 
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-11-01 10:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-30 11:22 [PATCH V1] mmc: sdhci-uhs2: correction of incorrect type in argument Victor Shih
2024-10-30 11:22 ` [PATCH V1] mmc: sdhci-uhs2: remove unnecessary variables Victor Shih
2024-10-30 12:45   ` Adrian Hunter
2024-10-31 16:39   ` Ulf Hansson
2024-10-30 13:07 ` [PATCH V1] mmc: sdhci-uhs2: correction of incorrect type in argument Adrian Hunter
2024-10-31 16:39   ` Ulf Hansson
2024-11-01 10:40     ` Victor Shih

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox