tree:
https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git
ib-mfd-clk-gpio-regulator-rtc-5.13
head: 5a8a64d9a38b9d3794f9f5e153fc0358b858cc24
commit: 1aad39001e851cd7ee2d811eb5fd4b044979d9d5 [13/16] regulator: Support ROHM BD71815
regulators
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git/commit/?id=1a...
git remote add lee-mfd
https://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd.git
git fetch --no-tags lee-mfd ib-mfd-clk-gpio-regulator-rtc-5.13
git checkout 1aad39001e851cd7ee2d811eb5fd4b044979d9d5
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=arc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/regulator/bd71815-regulator.c:404:20: error:
'regulator_set_ramp_delay_regmap' undeclared here (not in a function); did you
mean 'regulator_set_pull_down_regmap'?
404 | .set_ramp_delay =
regulator_set_ramp_delay_regmap,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| regulator_set_pull_down_regmap
> drivers/regulator/bd71815-regulator.c:474:5: error: 'struct
regulator_desc' has no member named 'ramp_reg'; did you mean
'ramp_delay'?
474 | .ramp_reg = (ereg), \
| ^~~~~~~~
drivers/regulator/bd71815-regulator.c:526:2: note: in expansion of macro
'BD71815_BUCK12_REG'
526 | BD71815_BUCK12_REG(buck1, BD71815_BUCK1, BD71815_REG_BUCK1_VOLT_H,
| ^~~~~~~~~~~~~~~~~~
> drivers/regulator/bd71815-regulator.c:475:5: error: 'struct
regulator_desc' has no member named 'ramp_mask'
475 | .ramp_mask
= BD71815_BUCK_RAMPRATE_MASK, \
| ^~~~~~~~~
drivers/regulator/bd71815-regulator.c:526:2: note: in expansion of macro
'BD71815_BUCK12_REG'
526 | BD71815_BUCK12_REG(buck1, BD71815_BUCK1, BD71815_REG_BUCK1_VOLT_H,
| ^~~~~~~~~~~~~~~~~~
> drivers/regulator/bd71815-regulator.c:476:5: error: 'struct
regulator_desc' has no member named 'ramp_delay_table'; did you mean
'ramp_delay'?
476 | .ramp_delay_table = bd7181x_ramp_table, \
| ^~~~~~~~~~~~~~~~
drivers/regulator/bd71815-regulator.c:526:2: note: in expansion of macro
'BD71815_BUCK12_REG'
526 | BD71815_BUCK12_REG(buck1, BD71815_BUCK1, BD71815_REG_BUCK1_VOLT_H,
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/linkage.h:7,
from include/linux/kernel.h:7,
from drivers/regulator/bd71815-regulator.c:11:
include/linux/export.h:19:30: warning: the address of 'bd7181x_ramp_table' will
always evaluate as 'true' [-Waddress]
19 | #define THIS_MODULE ((struct module *)0)
| ^~~~~~
drivers/regulator/bd71815-regulator.c:467:13: note: in expansion of macro
'THIS_MODULE'
467 | .owner = THIS_MODULE, \
| ^~~~~~~~~~~
drivers/regulator/bd71815-regulator.c:526:2: note: in expansion of macro
'BD71815_BUCK12_REG'
526 | BD71815_BUCK12_REG(buck1, BD71815_BUCK1, BD71815_REG_BUCK1_VOLT_H,
| ^~~~~~~~~~~~~~~~~~
> drivers/regulator/bd71815-regulator.c:477:5: error: 'struct
regulator_desc' has no member named 'n_ramp_values'
477 |
.n_ramp_values = ARRAY_SIZE(bd7181x_ramp_table),\
| ^~~~~~~~~~~~~
drivers/regulator/bd71815-regulator.c:526:2: note: in expansion of macro
'BD71815_BUCK12_REG'
526 | BD71815_BUCK12_REG(buck1, BD71815_BUCK1, BD71815_REG_BUCK1_VOLT_H,
| ^~~~~~~~~~~~~~~~~~
> drivers/regulator/bd71815-regulator.c:474:5: error: 'struct
regulator_desc' has no member named 'ramp_reg'; did you mean
'ramp_delay'?
474 | .ramp_reg = (ereg), \
| ^~~~~~~~
drivers/regulator/bd71815-regulator.c:529:2: note: in expansion of macro
'BD71815_BUCK12_REG'
529 | BD71815_BUCK12_REG(buck2, BD71815_BUCK2, BD71815_REG_BUCK2_VOLT_H,
| ^~~~~~~~~~~~~~~~~~
> drivers/regulator/bd71815-regulator.c:475:5: error: 'struct
regulator_desc' has no member named 'ramp_mask'
475 | .ramp_mask
= BD71815_BUCK_RAMPRATE_MASK, \
| ^~~~~~~~~
drivers/regulator/bd71815-regulator.c:529:2: note: in expansion of macro
'BD71815_BUCK12_REG'
529 | BD71815_BUCK12_REG(buck2, BD71815_BUCK2, BD71815_REG_BUCK2_VOLT_H,
| ^~~~~~~~~~~~~~~~~~
> drivers/regulator/bd71815-regulator.c:476:5: error: 'struct
regulator_desc' has no member named 'ramp_delay_table'; did you mean
'ramp_delay'?
476 | .ramp_delay_table = bd7181x_ramp_table, \
| ^~~~~~~~~~~~~~~~
drivers/regulator/bd71815-regulator.c:529:2: note: in expansion of macro
'BD71815_BUCK12_REG'
529 | BD71815_BUCK12_REG(buck2, BD71815_BUCK2, BD71815_REG_BUCK2_VOLT_H,
| ^~~~~~~~~~~~~~~~~~
In file included from include/linux/linkage.h:7,
from include/linux/kernel.h:7,
from drivers/regulator/bd71815-regulator.c:11:
include/linux/export.h:19:30: warning: the address of 'bd7181x_ramp_table' will
always evaluate as 'true' [-Waddress]
19 | #define THIS_MODULE ((struct module *)0)
| ^~~~~~
drivers/regulator/bd71815-regulator.c:467:13: note: in expansion of macro
'THIS_MODULE'
467 | .owner = THIS_MODULE, \
| ^~~~~~~~~~~
drivers/regulator/bd71815-regulator.c:529:2: note: in expansion of macro
'BD71815_BUCK12_REG'
529 | BD71815_BUCK12_REG(buck2, BD71815_BUCK2, BD71815_REG_BUCK2_VOLT_H,
| ^~~~~~~~~~~~~~~~~~
> drivers/regulator/bd71815-regulator.c:477:5: error: 'struct
regulator_desc' has no member named 'n_ramp_values'
477 |
.n_ramp_values = ARRAY_SIZE(bd7181x_ramp_table),\
| ^~~~~~~~~~~~~
drivers/regulator/bd71815-regulator.c:529:2: note: in expansion of macro
'BD71815_BUCK12_REG'
529 | BD71815_BUCK12_REG(buck2, BD71815_BUCK2, BD71815_REG_BUCK2_VOLT_H,
| ^~~~~~~~~~~~~~~~~~
vim +404 drivers/regulator/bd71815-regulator.c
395
396 static const struct regulator_ops bd7181x_buck12_regulator_ops = {
397 .enable = regulator_enable_regmap,
398 .disable = regulator_disable_regmap,
399 .is_enabled = regulator_is_enabled_regmap,
400 .list_voltage = regulator_list_voltage_linear,
401 .set_voltage_sel = bd7181x_buck12_set_voltage_sel,
402 .get_voltage_sel = bd7181x_buck12_get_voltage_sel,
403 .set_voltage_time_sel = regulator_set_voltage_time_sel,
404 .set_ramp_delay = regulator_set_ramp_delay_regmap,
405 };
406
407 static const struct regulator_ops bd7181x_led_regulator_ops = {
408 .enable = regulator_enable_regmap,
409 .disable = regulator_disable_regmap,
410 .is_enabled = regulator_is_enabled_regmap,
411 .set_current_limit = bd7181x_led_set_current_limit,
412 .get_current_limit = regulator_get_current_limit_regmap,
413 };
414
415 #define BD71815_FIXED_REG(_name, _id, ereg, emsk, voltage, _dvs) \
416 [(_id)] = { \
417 .desc = { \
418 .name = #_name, \
419 .of_match = of_match_ptr(#_name), \
420 .regulators_node = of_match_ptr("regulators"), \
421 .n_voltages = 1, \
422 .ops = &bd7181x_fixed_regulator_ops, \
423 .type = REGULATOR_VOLTAGE, \
424 .id = (_id), \
425 .owner = THIS_MODULE, \
426 .min_uV = (voltage), \
427 .enable_reg = (ereg), \
428 .enable_mask = (emsk), \
429 .of_parse_cb = set_hw_dvs_levels, \
430 }, \
431 .dvs = (_dvs), \
432 }
433
434 #define BD71815_BUCK_REG(_name, _id, vsel, ereg, min, max, step, _dvs) \
435 [(_id)] = { \
436 .desc = { \
437 .name = #_name, \
438 .of_match = of_match_ptr(#_name), \
439 .regulators_node = of_match_ptr("regulators"), \
440 .n_voltages = ((max) - (min)) / (step) + 1, \
441 .ops = &bd7181x_buck_regulator_ops, \
442 .type = REGULATOR_VOLTAGE, \
443 .id = (_id), \
444 .owner = THIS_MODULE, \
445 .min_uV = (min), \
446 .uV_step = (step), \
447 .vsel_reg = (vsel), \
448 .vsel_mask = BD71815_VOLT_MASK, \
449 .enable_reg = (ereg), \
450 .enable_mask = BD71815_BUCK_RUN_ON, \
451 .of_parse_cb = set_hw_dvs_levels, \
452 }, \
453 .dvs = (_dvs), \
454 }
455
456 #define BD71815_BUCK12_REG(_name, _id, vsel, ereg, min, max, step, \
457 _dvs) \
458 [(_id)] = { \
459 .desc = { \
460 .name = #_name, \
461 .of_match = of_match_ptr(#_name), \
462 .regulators_node = of_match_ptr("regulators"), \
463 .n_voltages = ((max) - (min)) / (step) + 1, \
464 .ops = &bd7181x_buck12_regulator_ops, \
465 .type = REGULATOR_VOLTAGE, \
466 .id = (_id), \
467 .owner = THIS_MODULE, \
468 .min_uV = (min), \
469 .uV_step = (step), \
470 .vsel_reg = (vsel), \
471 .vsel_mask = 0x3f, \
472 .enable_reg = (ereg), \
473 .enable_mask = 0x04, \
474 .ramp_reg = (ereg), \
475 .ramp_mask = BD71815_BUCK_RAMPRATE_MASK, \
476 .ramp_delay_table = bd7181x_ramp_table, \
477 .n_ramp_values = ARRAY_SIZE(bd7181x_ramp_table),\
478 .of_parse_cb =
buck12_set_hw_dvs_levels, \
479 }, \
480 .dvs = (_dvs), \
481 }
482
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org