[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202508141139.psCBtuQz-lkp@intel.com>
Date: Thu, 14 Aug 2025 11:49:54 +0800
From: kernel test robot <lkp@...el.com>
To: Oleksij Rempel <o.rempel@...gutronix.de>,
Ulf Hansson <ulf.hansson@...aro.org>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
Oleksij Rempel <o.rempel@...gutronix.de>, kernel@...gutronix.de,
linux-kernel@...r.kernel.org, linux-mmc@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Mark Brown <broonie@...nel.org>,
"Rafael J. Wysocki" <rafael@...nel.org>,
Søren Andersen <san@...v.dk>,
Christian Loehle <christian.loehle@....com>,
Adrian Hunter <adrian.hunter@...el.com>,
Avri Altman <Avri.Altman@...disk.com>
Subject: Re: [PATCH v7 1/2] mmc: core: Add infrastructure for undervoltage
handling
Hi Oleksij,
kernel test robot noticed the following build warnings:
[auto build test WARNING on linus/master]
[also build test WARNING on ulf-hansson-mmc-mirror/next v6.17-rc1 next-20250813]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Oleksij-Rempel/mmc-core-add-undervoltage-handler-for-MMC-eMMC-devices/20250813-193625
base: linus/master
patch link: https://lore.kernel.org/r/20250813103309.3810728-2-o.rempel%40pengutronix.de
patch subject: [PATCH v7 1/2] mmc: core: Add infrastructure for undervoltage handling
config: x86_64-buildonly-randconfig-002-20250814 (https://download.01.org/0day-ci/archive/20250814/202508141139.psCBtuQz-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250814/202508141139.psCBtuQz-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/202508141139.psCBtuQz-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/mmc/core/core.c:1412:6: warning: unused variable 'ret' [-Wunused-variable]
1412 | int ret;
| ^~~
1 warning generated.
vim +/ret +1412 drivers/mmc/core/core.c
1400
1401 /**
1402 * mmc_handle_undervoltage - Handle an undervoltage event on the MMC bus
1403 * @host: The MMC host that detected the undervoltage condition
1404 *
1405 * This function is called when an undervoltage event is detected on one of
1406 * the MMC regulators.
1407 *
1408 * Returns: 0 on success or a negative error code on failure.
1409 */
1410 int mmc_handle_undervoltage(struct mmc_host *host)
1411 {
> 1412 int ret;
1413
1414 /* Stop the host to prevent races with card removal */
1415 __mmc_stop_host(host);
1416
1417 if (!host->bus_ops || !host->bus_ops->handle_undervoltage)
1418 return 0;
1419
1420 dev_warn(mmc_dev(host), "%s: Undervoltage detected, initiating emergency stop\n",
1421 mmc_hostname(host));
1422
1423 return host->bus_ops->handle_undervoltage(host);
1424 }
1425
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists