tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-descriptors-regulator head: 244e11229b7790844f0472d38e6c6a0e5c3cc665 commit: 04871fee352a268ecdb5ce29a5fb0b4095094ed0 [1/18] regulator: fixed: Convert to use GPIO descriptor only config: arm-shannon_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout 04871fee352a268ecdb5ce29a5fb0b4095094ed0 # save the attached .config to linux build tree make.cross ARCH=arm All error/warnings (new ones prefixed by >>): arch/arm/mach-sa1100/generic.c: In function 'sa11x0_register_fixed_regulator': >> arch/arm/mach-sa1100/generic.c:359:9: error: 'struct fixed_voltage_config' has no member named 'gpio' if (cfg->gpio < 0) ^~ -- >> arch/arm/mach-sa1100/shannon.c:105:3: error: 'struct fixed_voltage_config' has no member named 'gpio' .gpio = -EINVAL, ^~~~ >> arch/arm/mach-sa1100/shannon.c:105:10: warning: initialization makes pointer from integer without a cast [-Wint-conversion] .gpio = -EINVAL, ^ arch/arm/mach-sa1100/shannon.c:105:10: note: (near initialization for 'shannon_cf_vcc_pdata.init_data') vim +359 arch/arm/mach-sa1100/generic.c ^1da177e Linus Torvalds 2005-04-16 348 0920ca10 Russell King 2016-08-31 349 int __init sa11x0_register_fixed_regulator(int n, 0920ca10 Russell King 2016-08-31 350 struct fixed_voltage_config *cfg, 0920ca10 Russell King 2016-08-31 351 struct regulator_consumer_supply *supplies, unsigned num_supplies) 0920ca10 Russell King 2016-08-31 352 { 0920ca10 Russell King 2016-08-31 353 struct regulator_init_data *id; 0920ca10 Russell King 2016-08-31 354 0920ca10 Russell King 2016-08-31 355 cfg->init_data = id = kzalloc(sizeof(*cfg->init_data), GFP_KERNEL); 0920ca10 Russell King 2016-08-31 356 if (!cfg->init_data) 0920ca10 Russell King 2016-08-31 357 return -ENOMEM; 0920ca10 Russell King 2016-08-31 358 0920ca10 Russell King 2016-08-31 @359 if (cfg->gpio < 0) 0920ca10 Russell King 2016-08-31 360 id->constraints.always_on = 1; 0920ca10 Russell King 2016-08-31 361 id->constraints.name = cfg->supply_name; 0920ca10 Russell King 2016-08-31 362 id->constraints.min_uV = cfg->microvolts; 0920ca10 Russell King 2016-08-31 363 id->constraints.max_uV = cfg->microvolts; 0920ca10 Russell King 2016-08-31 364 id->constraints.valid_modes_mask = REGULATOR_MODE_NORMAL; 0920ca10 Russell King 2016-08-31 365 id->constraints.valid_ops_mask = REGULATOR_CHANGE_STATUS; 0920ca10 Russell King 2016-08-31 366 id->consumer_supplies = supplies; 0920ca10 Russell King 2016-08-31 367 id->num_consumer_supplies = num_supplies; 0920ca10 Russell King 2016-08-31 368 0920ca10 Russell King 2016-08-31 369 platform_device_register_resndata(NULL, "reg-fixed-voltage", n, 0920ca10 Russell King 2016-08-31 370 NULL, 0, cfg, sizeof(*cfg)); 0920ca10 Russell King 2016-08-31 371 return 0; 0920ca10 Russell King 2016-08-31 372 } 0920ca10 Russell King 2016-08-31 373 :::::: The code at line 359 was first introduced by commit :::::: 0920ca103f8d8b53619bb69fa34185013f448ca2 ARM: sa1100: provide infrastructure to support generic CF sockets :::::: TO: Russell King <rmk+kernel@xxxxxxxxxxxxxxx> :::::: CC: Russell King <rmk+kernel@xxxxxxxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip