Re: [PATCH 4/4] regulator: core: make bulk API support optional supplies

From: kbuild test robot
Date: Sat Feb 04 2017 - 02:54:15 EST


Hi Dmitry,

[auto build test ERROR on regulator/for-next]
[also build test ERROR on v4.10-rc6 next-20170203]
[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/Dmitry-Torokhov/regulator-core-fix-typo-in-regulator_bulk_disable/20170204-145103
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
config: x86_64-randconfig-x008-201705 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

drivers/regulator/core.c: In function 'regulator_bulk_get':
>> drivers/regulator/core.c:3565:6: error: 'OPTIONAL_GET' undeclared (first use in this function)
OPTIONAL_GET : NORMAL_GET);
^~~~~~~~~~~~
drivers/regulator/core.c:3565:6: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/regulator/core.c:3565:21: error: 'NORMAL_GET' undeclared (first use in this function)
OPTIONAL_GET : NORMAL_GET);
^~~~~~~~~~
>> drivers/regulator/core.c:3563:7: error: too few arguments to function '_regulator_get'
r = _regulator_get(dev, consumers[i].supply,
^~~~~~~~~~~~~~
drivers/regulator/core.c:1596:26: note: declared here
static struct regulator *_regulator_get(struct device *dev, const char *id,
^~~~~~~~~~~~~~

vim +/OPTIONAL_GET +3565 drivers/regulator/core.c

3557 {
3558 struct regulator *r;
3559 int i;
3560 int ret;
3561
3562 for (i = 0; i < num_consumers; i++) {
> 3563 r = _regulator_get(dev, consumers[i].supply,
3564 consumers[i].optional ?
> 3565 OPTIONAL_GET : NORMAL_GET);
3566 ret = PTR_ERR_OR_ZERO(r);
3567 if (!ret) {
3568 consumers[i].consumer = r;

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip