Skip to content

Commit 7f083e4

Browse files
Victor ShihUlf Hansson
authored andcommitted
mmc: core: Correction a warning caused by incorrect type in assignment for UHS-II
There is a type issue in the assignment in the sd_uhs2_dev_init() 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/202411051248.wvjHSFNj-lkp@intel.com/ Signed-off-by: Ben Chuang <ben.chuang@genesyslogic.com.tw> Signed-off-by: Victor Shih <victor.shih@genesyslogic.com.tw> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Message-ID: <20241105102901.351429-1-victorshihgli@gmail.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 8418557 commit 7f083e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/mmc/core/sd_uhs2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static int sd_uhs2_dev_init(struct mmc_host *host)
181181
UHS2_DEV_INIT_COMPLETE_FLAG |
182182
((gd & 0xF) << 4) |
183183
(gap & 0xF);
184-
uhs2_cmd.payload[0] = payload0;
184+
uhs2_cmd.payload[0] = (__force __be32)payload0;
185185

186186
sd_uhs2_cmd_assemble(&cmd, &uhs2_cmd, UHS2_DEV_INIT_PAYLOAD_LEN,
187187
UHS2_DEV_INIT_RESP_LEN);

0 commit comments

Comments
 (0)