Re: [PATCH v2 2/2] mmc: sdhci-of-k1: add support for SpacemiT K1 SoC

kernel test robot
2025-05-07T07:45:04Z

Hi Yixun,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 0af2f6be1b4281385b618cb86ad946eded089ac8]

url: https://github.com/intel-lab-lkp/linux/commits/Yixun-Lan/dt-bindings-mmc-spacemit-sdhci-add-support-for-K1-SoC/20250501-165846
base: 0af2f6be1b4281385b618cb86ad946eded089ac8
patch link: https://lore.kernel.org/r/20250501-20-k1-sdhci-v2-2-3e7005fae29b%40gentoo.org
patch subject: [PATCH v2 2/2] mmc: sdhci-of-k1: add support for SpacemiT K1 SoC
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20250507/202505071416.Rll3WhPR-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250507/202505071416.Rll3WhPR-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505071416.Rll3WhPR-lkp@intel.com/

All warnings (new ones prefixed by >>):

drivers/mmc/host/sdhci-of-k1.c: In function 'spacemit_sdhci_reset':
>> drivers/mmc/host/sdhci-of-k1.c:88:33: warning: variable 'pdev' set but not used [-Wunused-but-set-variable]
88 | struct platform_device *pdev;
| ^~~~

vim +/pdev +88 drivers/mmc/host/sdhci-of-k1.c

85
86 static void spacemit_sdhci_reset(struct sdhci_host *host, u8 mask)
87 {
> 88 struct platform_device *pdev;
89
90 pdev = to_platform_device(mmc_dev(host->mmc));
91 sdhci_reset(host, mask);
92
93 if (mask != SDHCI_RESET_ALL)
94 return;
95
96 spacemit_sdhci_setbits(host, PHY_FUNC_EN | PHY_PLL_LOCK, SDHC_PHY_CTRL_REG);
97
98 spacemit_sdhci_clrsetbits(host, PHY_DRIVE_SEL,
99 RX_BIAS_CTRL | FIELD_PREP(PHY_DRIVE_SEL, 4),
100 SDHC_PHY_PADCFG_REG);
101
102 if (!(host->mmc->caps2 & MMC_CAP2_NO_MMC))
103 spacemit_sdhci_setbits(host, MMC_CARD_MODE, SDHC_MMC_CTRL_REG);
104 }
105

--
0-DAY CI Kernel Test Service