tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-driver-h head: 197b5b4d28501c2457eac9527c29deb2aeea1bb0 commit: d2fc1fb4712c450ae5f5d26f2e829ad2b7e80af5 [25/38] gpio: tpx65xxx: Include the right header config: i386-randconfig-s0-201835 (attached as .config) compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026 reproduce: git checkout d2fc1fb4712c450ae5f5d26f2e829ad2b7e80af5 # save the attached .config to linux build tree make ARCH=i386 :::::: branch date: 2 hours ago :::::: commit date: 2 hours ago All errors (new ones prefixed by >>): drivers/gpio/gpio-tps65912.c: In function 'tps65912_gpio_get_direction': >> drivers/gpio/gpio-tps65912.c:43:10: error: 'GPIOF_DIR_OUT' undeclared (first use in this function) return GPIOF_DIR_OUT; ^~~~~~~~~~~~~ drivers/gpio/gpio-tps65912.c:43:10: note: each undeclared identifier is reported only once for each function it appears in >> drivers/gpio/gpio-tps65912.c:45:10: error: 'GPIOF_DIR_IN' undeclared (first use in this function) return GPIOF_DIR_IN; ^~~~~~~~~~~~ drivers/gpio/gpio-tps65912.c:46:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ # https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git/commit/?id=d2fc1fb4712c450ae5f5d26f2e829ad2b7e80af5 git remote add gpio https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git git remote update gpio git checkout d2fc1fb4712c450ae5f5d26f2e829ad2b7e80af5 vim +/GPIOF_DIR_OUT +43 drivers/gpio/gpio-tps65912.c 668a6cc7 Margarita Olaya 2011-06-09 30 ca801a22 Andrew F. Davis 2016-01-25 31 static int tps65912_gpio_get_direction(struct gpio_chip *gc, ca801a22 Andrew F. Davis 2016-01-25 32 unsigned offset) 668a6cc7 Margarita Olaya 2011-06-09 33 { ca801a22 Andrew F. Davis 2016-01-25 34 struct tps65912_gpio *gpio = gpiochip_get_data(gc); 668a6cc7 Margarita Olaya 2011-06-09 35 ca801a22 Andrew F. Davis 2016-01-25 36 int ret, val; 668a6cc7 Margarita Olaya 2011-06-09 37 ca801a22 Andrew F. Davis 2016-01-25 38 ret = regmap_read(gpio->tps->regmap, TPS65912_GPIO1 + offset, &val); ca801a22 Andrew F. Davis 2016-01-25 39 if (ret) ca801a22 Andrew F. Davis 2016-01-25 40 return ret; 668a6cc7 Margarita Olaya 2011-06-09 41 ca801a22 Andrew F. Davis 2016-01-25 42 if (val & GPIO_CFG_MASK) ca801a22 Andrew F. Davis 2016-01-25 @43 return GPIOF_DIR_OUT; ca801a22 Andrew F. Davis 2016-01-25 44 else ca801a22 Andrew F. Davis 2016-01-25 @45 return GPIOF_DIR_IN; 668a6cc7 Margarita Olaya 2011-06-09 46 } 668a6cc7 Margarita Olaya 2011-06-09 47 :::::: The code at line 43 was first introduced by commit :::::: ca801a22f465eae39fadc770e15b5b7e82595f81 gpio: tps65912: Add GPIO driver for the TPS65912 PMIC :::::: TO: Andrew F. Davis <afd@xxxxxx> :::::: CC: Lee Jones <lee.jones@xxxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip