Re: [PATCH v2] regulator: core: Limit propagation of parent voltage count and list
From: kbuild test robot
Date: Tue Mar 28 2017 - 00:22:36 EST
Hi Matthias,
[auto build test WARNING on regulator/for-next]
[also build test WARNING on v4.11-rc4 next-20170327]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Matthias-Kaehlcke/regulator-core-Limit-propagation-of-parent-voltage-count-and-list/20170328-095816
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
config: x86_64-randconfig-s0-03281146 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
drivers//regulator/core.c: In function 'regulator_count_voltages':
>> drivers//regulator/core.c:2543: warning: unused variable 'ops'
vim +/ops +2543 drivers//regulator/core.c
2527
2528 return ret;
2529 }
2530 EXPORT_SYMBOL_GPL(regulator_is_enabled);
2531
2532 /**
2533 * regulator_count_voltages - count regulator_list_voltage() selectors
2534 * @regulator: regulator source
2535 *
2536 * Returns number of selectors, or negative errno. Selectors are
2537 * numbered starting at zero, and typically correspond to bitfields
2538 * in hardware registers.
2539 */
2540 int regulator_count_voltages(struct regulator *regulator)
2541 {
2542 struct regulator_dev *rdev = regulator->rdev;
> 2543 const struct regulator_ops *ops = rdev->desc->ops;
2544
2545 if (rdev->desc->n_voltages)
2546 return rdev->desc->n_voltages;
2547
2548 if (!rdev->is_switch || !rdev->supply)
2549 return -EINVAL;
2550
2551 return regulator_count_voltages(rdev->supply);
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip