[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202505071416.Rll3WhPR-lkp@intel.com>
Date: Wed, 7 May 2025 15:44:01 +0800
From: kernel test robot <lkp@...el.com>
To: Yixun Lan <dlan@...too.org>, Ulf Hansson <ulf.hansson@...aro.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Adrian Hunter <adrian.hunter@...el.com>
Cc: oe-kbuild-all@...ts.linux.dev, Alex Elder <elder@...cstar.com>,
linux-mmc@...r.kernel.org, devicetree@...r.kernel.org,
linux-riscv@...ts.infradead.org, spacemit@...ts.linux.dev,
linux-kernel@...r.kernel.org, Yixun Lan <dlan@...too.org>
Subject: Re: [PATCH v2 2/2] mmc: sdhci-of-k1: add support for SpacemiT K1 SoC
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@...el.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
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists