tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-descriptors-regulator head: 21d37183887389f3d500017630fe3298124c25b9 commit: 04651f599b68f9dc3abeb0925c652709b5076c4e [7/26] regulator: fixed: Convert to use GPIO descriptor only config: arm-mmp2_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 04651f599b68f9dc3abeb0925c652709b5076c4e # save the attached .config to linux build tree make.cross ARCH=arm All errors (new ones prefixed by >>): >> arch/arm/mach-mmp/brownstone.c:164:15: error: variable 'brownstone_v_5vp_gpiod_table' has initializer but incomplete type static struct gpiod_lookup_table brownstone_v_5vp_gpiod_table = { ^~~~~~~~~~~~~~~~~~ >> arch/arm/mach-mmp/brownstone.c:165:3: error: 'struct gpiod_lookup_table' has no member named 'dev_id' .dev_id = "reg-fixed-voltage.1", /* .id set to 1 above */ ^~~~~~ arch/arm/mach-mmp/brownstone.c:165:12: warning: excess elements in struct initializer .dev_id = "reg-fixed-voltage.1", /* .id set to 1 above */ ^~~~~~~~~~~~~~~~~~~~~ arch/arm/mach-mmp/brownstone.c:165:12: note: (near initialization for 'brownstone_v_5vp_gpiod_table') >> arch/arm/mach-mmp/brownstone.c:166:3: error: 'struct gpiod_lookup_table' has no member named 'table' .table = { ^~~~~ >> arch/arm/mach-mmp/brownstone.c:166:11: error: extra brace group at end of initializer .table = { ^ arch/arm/mach-mmp/brownstone.c:166:11: note: (near initialization for 'brownstone_v_5vp_gpiod_table') >> arch/arm/mach-mmp/brownstone.c:167:3: error: implicit declaration of function 'GPIO_LOOKUP'; did you mean 'IOP_LOOKUP'? [-Werror=implicit-function-declaration] GPIO_LOOKUP("gpio-pxa", GPIO_5V_ENABLE, ^~~~~~~~~~~ IOP_LOOKUP >> arch/arm/mach-mmp/brownstone.c:168:18: error: 'GPIO_ACTIVE_HIGH' undeclared here (not in a function); did you mean 'LRU_ACTIVE_FILE'? "enable", GPIO_ACTIVE_HIGH), ^~~~~~~~~~~~~~~~ LRU_ACTIVE_FILE arch/arm/mach-mmp/brownstone.c:169:3: error: extra brace group at end of initializer { }, ^ arch/arm/mach-mmp/brownstone.c:169:3: note: (near initialization for 'brownstone_v_5vp_gpiod_table') arch/arm/mach-mmp/brownstone.c:166:11: warning: excess elements in struct initializer .table = { ^ arch/arm/mach-mmp/brownstone.c:166:11: note: (near initialization for 'brownstone_v_5vp_gpiod_table') arch/arm/mach-mmp/brownstone.c: In function 'brownstone_init': >> arch/arm/mach-mmp/brownstone.c:228:2: error: implicit declaration of function 'gpiod_add_lookup_table'; did you mean 'pinctrl_lookup_state'? [-Werror=implicit-function-declaration] gpiod_add_lookup_table(&brownstone_v_5vp_gpiod_table); ^~~~~~~~~~~~~~~~~~~~~~ pinctrl_lookup_state arch/arm/mach-mmp/brownstone.c: At top level: >> arch/arm/mach-mmp/brownstone.c:164:34: error: storage size of 'brownstone_v_5vp_gpiod_table' isn't known static struct gpiod_lookup_table brownstone_v_5vp_gpiod_table = { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/brownstone_v_5vp_gpiod_table +164 arch/arm/mach-mmp/brownstone.c 163 > 164 static struct gpiod_lookup_table brownstone_v_5vp_gpiod_table = { > 165 .dev_id = "reg-fixed-voltage.1", /* .id set to 1 above */ > 166 .table = { > 167 GPIO_LOOKUP("gpio-pxa", GPIO_5V_ENABLE, > 168 "enable", GPIO_ACTIVE_HIGH), > 169 { }, 170 }, 171 }; 172 173 static struct max8925_platform_data brownstone_max8925_info = { 174 .irq_base = MMP_NR_IRQS, 175 }; 176 177 static struct i2c_board_info brownstone_twsi1_info[] = { 178 [0] = { 179 .type = "max8649", 180 .addr = 0x60, 181 .platform_data = &brownstone_max8649_info, 182 }, 183 [1] = { 184 .type = "max8925", 185 .addr = 0x3c, 186 .irq = IRQ_MMP2_PMIC, 187 .platform_data = &brownstone_max8925_info, 188 }, 189 }; 190 191 static struct sdhci_pxa_platdata mmp2_sdh_platdata_mmc0 = { 192 .clk_delay_cycles = 0x1f, 193 }; 194 195 static struct sdhci_pxa_platdata mmp2_sdh_platdata_mmc2 = { 196 .clk_delay_cycles = 0x1f, 197 .flags = PXA_FLAG_CARD_PERMANENT 198 | PXA_FLAG_SD_8_BIT_CAPABLE_SLOT, 199 }; 200 201 static struct sram_platdata mmp2_asram_platdata = { 202 .pool_name = "asram", 203 .granularity = SRAM_GRANULARITY, 204 }; 205 206 static struct sram_platdata mmp2_isram_platdata = { 207 .pool_name = "isram", 208 .granularity = SRAM_GRANULARITY, 209 }; 210 211 static void __init brownstone_init(void) 212 { 213 mfp_config(ARRAY_AND_SIZE(brownstone_pin_config)); 214 215 /* on-chip devices */ 216 mmp2_add_uart(1); 217 mmp2_add_uart(3); 218 platform_device_add_data(&mmp2_device_gpio, &mmp2_gpio_pdata, 219 sizeof(struct pxa_gpio_platform_data)); 220 platform_device_register(&mmp2_device_gpio); 221 mmp2_add_twsi(1, NULL, ARRAY_AND_SIZE(brownstone_twsi1_info)); 222 mmp2_add_sdhost(0, &mmp2_sdh_platdata_mmc0); /* SD/MMC */ 223 mmp2_add_sdhost(2, &mmp2_sdh_platdata_mmc2); /* eMMC */ 224 mmp2_add_asram(&mmp2_asram_platdata); 225 mmp2_add_isram(&mmp2_isram_platdata); 226 227 /* enable 5v regulator */ > 228 gpiod_add_lookup_table(&brownstone_v_5vp_gpiod_table); 229 platform_device_register(&brownstone_v_5vp_device); 230 } 231 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip