tree: https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-drivers-only-driver-h head: 7c106f011de7046519fb84874b2eb0cadd887e89 commit: 7c106f011de7046519fb84874b2eb0cadd887e89 [41/41] gpio: ich: Include the right header config: x86_64-randconfig-x000-201809 (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: git checkout 7c106f011de7046519fb84874b2eb0cadd887e89 # save the attached .config to linux build tree make ARCH=x86_64 All error/warnings (new ones prefixed by >>): drivers/gpio/gpio-ich.c: In function 'ichx_gpio_get_direction': >> drivers/gpio/gpio-ich.c:179:42: error: 'GPIOF_DIR_IN' undeclared (first use in this function); did you mean 'GPIO_IO_SEL'? return ichx_read_bit(GPIO_IO_SEL, nr) ? GPIOF_DIR_IN : GPIOF_DIR_OUT; ^~~~~~~~~~~~ GPIO_IO_SEL drivers/gpio/gpio-ich.c:179:42: note: each undeclared identifier is reported only once for each function it appears in >> drivers/gpio/gpio-ich.c:179:57: error: 'GPIOF_DIR_OUT' undeclared (first use in this function); did you mean 'GPIOF_DIR_IN'? return ichx_read_bit(GPIO_IO_SEL, nr) ? GPIOF_DIR_IN : GPIOF_DIR_OUT; ^~~~~~~~~~~~~ GPIOF_DIR_IN >> drivers/gpio/gpio-ich.c:180:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ vim +179 drivers/gpio/gpio-ich.c 4f600ada Jean Delvare 2012-07-23 176 62e08f25 Aaron Sierra 2015-03-31 177 static int ichx_gpio_get_direction(struct gpio_chip *gpio, unsigned nr) 62e08f25 Aaron Sierra 2015-03-31 178 { 62e08f25 Aaron Sierra 2015-03-31 @179 return ichx_read_bit(GPIO_IO_SEL, nr) ? GPIOF_DIR_IN : GPIOF_DIR_OUT; 62e08f25 Aaron Sierra 2015-03-31 @180 } 62e08f25 Aaron Sierra 2015-03-31 181 :::::: The code at line 179 was first introduced by commit :::::: 62e08f25bd09b088f266ea6fc34d2f596d83c04e gpio: ich: Implement get_direction function :::::: TO: Aaron Sierra <asierra@xxxxxxxxxxx> :::::: CC: Linus Walleij <linus.walleij@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