All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: drivers/opp/core.c:2548:9: error: implicit declaration of function 'regulator_sync_voltage'; did you mean
Date: Thu, 21 Jan 2021 04:27:50 +0800	[thread overview]
Message-ID: <202101210445.GASYGoBh-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2664 bytes --]

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20210120-154935/Dmitry-Osipenko/OPP-API-fixes-and-improvements/20210118-090646
head:   3311676ba14577eb4c6ab9a8c8cb479de1fc22fe
commit: 740004922eeb7b66b464d9c558dbea613f42268a opp: Add dev_pm_opp_sync_regulators()
date:   13 hours ago
config: x86_64-rhel (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/740004922eeb7b66b464d9c558dbea613f42268a
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20210120-154935/Dmitry-Osipenko/OPP-API-fixes-and-improvements/20210118-090646
        git checkout 740004922eeb7b66b464d9c558dbea613f42268a
        # save the attached .config to linux build tree
        make W=1 ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   drivers/opp/core.c: In function 'dev_pm_opp_sync_regulators':
>> drivers/opp/core.c:2548:9: error: implicit declaration of function 'regulator_sync_voltage'; did you mean 'regulator_set_voltage'? [-Werror=implicit-function-declaration]
    2548 |   ret = regulator_sync_voltage(reg);
         |         ^~~~~~~~~~~~~~~~~~~~~~
         |         regulator_set_voltage
   cc1: some warnings being treated as errors


vim +2548 drivers/opp/core.c

  2516	
  2517	/**
  2518	 * dev_pm_opp_sync_regulators() - Sync state of voltage regulators
  2519	 * @dev:	device for which we do this operation
  2520	 *
  2521	 * Sync voltage state of the OPP table regulators.
  2522	 *
  2523	 * Return: 0 on success or a negative error value.
  2524	 */
  2525	int dev_pm_opp_sync_regulators(struct device *dev)
  2526	{
  2527		struct opp_table *opp_table;
  2528		struct regulator *reg;
  2529		int i, ret = 0;
  2530	
  2531		/* Device may not have OPP table */
  2532		opp_table = _find_opp_table(dev);
  2533		if (IS_ERR(opp_table))
  2534			return 0;
  2535	
  2536		/* Regulator may not be required for the device */
  2537		if (!opp_table->regulators)
  2538			goto put_table;
  2539	
  2540		mutex_lock(&opp_table->lock);
  2541	
  2542		/* Nothing to sync if voltage wasn't changed */
  2543		if (!opp_table->enabled)
  2544			goto unlock;
  2545	
  2546		for (i = 0; i < opp_table->regulator_count; i++) {
  2547			reg = opp_table->regulators[i];
> 2548			ret = regulator_sync_voltage(reg);

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 45904 bytes --]

                 reply	other threads:[~2021-01-20 20:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202101210445.GASYGoBh-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.