[gpio:gpio-driver-h 66/66] drivers/gpio/gpiolib-sysfs.c:448:9: error: implicit declaration of function 'gpio_is_valid'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio.git gpio-driver-h
head:   ca5f5119acf7606ed3b8731630d1736004db44d7
commit: ca5f5119acf7606ed3b8731630d1736004db44d7 [66/66] gpio: Get rid of legacy header
config: i386-randconfig-s0-201836 (attached as .config)
compiler: gcc-6 (Debian 6.4.0-9) 6.4.0 20171026
reproduce:
        git checkout ca5f5119acf7606ed3b8731630d1736004db44d7
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/gpio/gpiolib-sysfs.c: In function 'gpio_to_valid_desc':
>> drivers/gpio/gpiolib-sysfs.c:448:9: error: implicit declaration of function 'gpio_is_valid' [-Werror=implicit-function-declaration]
     return gpio_is_valid(gpio) ? gpio_to_desc(gpio) : NULL;
            ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/gpio_is_valid +448 drivers/gpio/gpiolib-sysfs.c

0eb4c6c2 Alexandre Courbot 2014-07-01  445  
90b05b05 Masami Hiramatsu  2017-08-02  446  static struct gpio_desc *gpio_to_valid_desc(int gpio)
90b05b05 Masami Hiramatsu  2017-08-02  447  {
90b05b05 Masami Hiramatsu  2017-08-02 @448  	return gpio_is_valid(gpio) ? gpio_to_desc(gpio) : NULL;
90b05b05 Masami Hiramatsu  2017-08-02  449  }
90b05b05 Masami Hiramatsu  2017-08-02  450  

:::::: The code at line 448 was first introduced by commit
:::::: 90b05b0598c698252d5f7dcdce335c5a546e9047 gpio: reject invalid gpio before getting gpio_desc

:::::: TO: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
:::::: 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


[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux