* drivers/opp/core.c:2548:9: error: implicit declaration of function 'regulator_sync_voltage'; did you mean
@ 2021-01-20 20:27 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-01-20 20:27 UTC (permalink / raw)
To: kbuild-all
[-- 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 --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-20 20:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-20 20:27 drivers/opp/core.c:2548:9: error: implicit declaration of function 'regulator_sync_voltage'; did you mean kernel test robot
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.