tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-descriptors-regulator-fixup head: 0aaccc590e7a2f0d6f846c9e3698168e6d0c01f8 commit: 7f5a6c795962dd351402f6513757e0c3ce1ae188 [4/10] regulator: max77686: Let core handle GPIO descriptor config: i386-randconfig-x002-201847 (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: git checkout 7f5a6c795962dd351402f6513757e0c3ce1ae188 # save the attached .config to linux build tree make ARCH=i386 Note: the gpio/gpio-descriptors-regulator-fixup HEAD 0aaccc590e7a2f0d6f846c9e3698168e6d0c01f8 builds fine. It only hurts bisectibility. All error/warnings (new ones prefixed by >>): drivers//regulator/max77686-regulator.c: In function 'max77686_of_parse_cb': >> drivers//regulator/max77686-regulator.c:258:23: error: implicit declaration of function 'gpiod_get_from_of_node'; did you mean 'devm_gpiod_get_from_of_node'? [-Werror=implicit-function-declaration] config->ena_gpiod = gpiod_get_from_of_node(max77686->dev, ^~~~~~~~~~~~~~~~~~~~~~ devm_gpiod_get_from_of_node >> drivers//regulator/max77686-regulator.c:258:21: warning: assignment makes pointer from integer without a cast [-Wint-conversion] config->ena_gpiod = gpiod_get_from_of_node(max77686->dev, ^ cc1: some warnings being treated as errors vim +258 drivers//regulator/max77686-regulator.c 247 248 static int max77686_of_parse_cb(struct device_node *np, 249 const struct regulator_desc *desc, 250 struct regulator_config *config) 251 { 252 struct max77686_data *max77686 = config->driver_data; 253 254 switch (desc->id) { 255 case MAX77686_BUCK8: 256 case MAX77686_BUCK9: 257 case MAX77686_LDO20 ... MAX77686_LDO22: > 258 config->ena_gpiod = gpiod_get_from_of_node(max77686->dev, 259 np, 260 "maxim,ena", 261 0, 262 GPIOD_OUT_HIGH | GPIOD_FLAGS_BIT_NONEXCLUSIVE, 263 "max77686-regulator"); 264 if (IS_ERR(config->ena_gpiod)) 265 config->ena_gpiod = NULL; 266 break; 267 default: 268 return 0; 269 } 270 271 if (config->ena_gpiod) { 272 set_bit(desc->id, max77686->gpio_enabled); 273 274 return regmap_update_bits(config->regmap, desc->enable_reg, 275 desc->enable_mask, 276 MAX77686_GPIO_CONTROL); 277 } 278 279 return 0; 280 } 281 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip