mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Oleksij Rempel <o.rempel@pengutronix.de>,
	Ulf Hansson <ulf.hansson@linaro.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	"Oleksij Rempel" <o.rempel@pengutronix.de>,
	kernel@pengutronix.de, linux-kernel@vger.kernel.org,
	linux-mmc@vger.kernel.org,
	"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
	"Mark Brown" <broonie@kernel.org>,
	"Rafael J. Wysocki" <rafael@kernel.org>,
	"Søren Andersen" <san@skov.dk>,
	"Christian Loehle" <christian.loehle@arm.com>,
	"Adrian Hunter" <adrian.hunter@intel.com>,
	"Avri Altman" <Avri.Altman@sandisk.com>
Subject: Re: [PATCH v7 1/2] mmc: core: Add infrastructure for undervoltage handling
Date: Thu, 14 Aug 2025 11:49:54 +0800	[thread overview]
Message-ID: <202508141139.psCBtuQz-lkp@intel.com> (raw)
In-Reply-To: <20250813103309.3810728-2-o.rempel@pengutronix.de>

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@intel.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

  reply	other threads:[~2025-08-14  3:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-13 10:33 [PATCH v7 0/4] mmc: handle undervoltage events and prevent eMMC corruption Oleksij Rempel
2025-08-13 10:33 ` [PATCH v7 1/2] mmc: core: Add infrastructure for undervoltage handling Oleksij Rempel
2025-08-14  3:49   ` kernel test robot [this message]
2025-08-13 10:33 ` [PATCH v7 2/2] mmc: core: add undervoltage handler for MMC/eMMC devices Oleksij Rempel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202508141139.psCBtuQz-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Avri.Altman@sandisk.com \
    --cc=adrian.hunter@intel.com \
    --cc=broonie@kernel.org \
    --cc=christian.loehle@arm.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel@pengutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    --cc=o.rempel@pengutronix.de \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rafael@kernel.org \
    --cc=san@skov.dk \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®