From: Victor Shih Date: Fri, 1 Nov 2024 10:44:15 +0000 (+0800) Subject: mmc: sdhci-uhs2: correction a warning caused by incorrect type in argument X-Git-Tag: v6.13-rc1~153^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd92de9f99c2f3dc1007fdf2856a2cec9fb8ae94;p=thirdparty%2Fkernel%2Flinux.git mmc: sdhci-uhs2: correction a warning caused by incorrect type in argument There is a type issue in the argument in the uhs2_dev_cmd() that will generate a warning when building the kernel. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202410260525.ZUuPhMJz-lkp@intel.com/ Suggested-by: Adrian Hunter Signed-off-by: Ben Chuang Signed-off-by: Victor Shih Message-ID: <20241101104416.4954-1-victorshihgli@gmail.com> Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdhci-uhs2.c b/drivers/mmc/host/sdhci-uhs2.c index 0a597240d299c..c53b64d50c0de 100644 --- a/drivers/mmc/host/sdhci-uhs2.c +++ b/drivers/mmc/host/sdhci-uhs2.c @@ -70,7 +70,7 @@ EXPORT_SYMBOL_GPL(sdhci_uhs2_dump_regs); static inline u16 uhs2_dev_cmd(struct mmc_command *cmd) { - return be16_to_cpu((__be16)cmd->uhs2_cmd->arg) & UHS2_ARG_IOADR_MASK; + return be16_to_cpu((__force __be16)cmd->uhs2_cmd->arg) & UHS2_ARG_IOADR_MASK; } static inline int mmc_opt_regulator_set_ocr(struct mmc_host *mmc,