[wsa:i2c/for-next 3/19] drivers//i2c/i2c-core-base.c:137:9: error: implicit declaration of function 'gpiod_get_value_cansleep'; did you mean 'gpio_get_value_cansleep'?

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

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
head:   6b59abd761e168ee0f16726d43807626384e4b6e
commit: 3991c5c80beaf7eb9bce61e0b2f8f449e351a38e [3/19] i2c: Switch to using gpiod interface for gpio bus recovery
config: i386-defconfig (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        git checkout 3991c5c80beaf7eb9bce61e0b2f8f449e351a38e
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers//i2c/i2c-core-base.c: In function 'get_scl_gpio_value':
>> drivers//i2c/i2c-core-base.c:137:9: error: implicit declaration of function 'gpiod_get_value_cansleep'; did you mean 'gpio_get_value_cansleep'? [-Werror=implicit-function-declaration]
     return gpiod_get_value_cansleep(adap->bus_recovery_info->scl_gpiod);
            ^~~~~~~~~~~~~~~~~~~~~~~~
            gpio_get_value_cansleep
   drivers//i2c/i2c-core-base.c: In function 'set_scl_gpio_value':
>> drivers//i2c/i2c-core-base.c:142:2: error: implicit declaration of function 'gpiod_set_value_cansleep'; did you mean 'gpio_set_value_cansleep'? [-Werror=implicit-function-declaration]
     gpiod_set_value_cansleep(adap->bus_recovery_info->scl_gpiod, val);
     ^~~~~~~~~~~~~~~~~~~~~~~~
     gpio_set_value_cansleep
   drivers//i2c/i2c-core-base.c: In function 'i2c_get_gpios_for_recovery':
   drivers//i2c/i2c-core-base.c:162:19: error: implicit declaration of function 'gpio_to_desc'; did you mean 'irq_to_desc'? [-Werror=implicit-function-declaration]
     bri->scl_gpiod = gpio_to_desc(bri->scl_gpio);
                      ^~~~~~~~~~~~
                      irq_to_desc
   drivers//i2c/i2c-core-base.c:162:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
     bri->scl_gpiod = gpio_to_desc(bri->scl_gpio);
                    ^
   drivers//i2c/i2c-core-base.c:171:18: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
      bri->sda_gpiod = gpio_to_desc(bri->sda_gpio);
                     ^
   cc1: some warnings being treated as errors

vim +137 drivers//i2c/i2c-core-base.c

   133	
   134	/* i2c bus recovery routines */
   135	static int get_scl_gpio_value(struct i2c_adapter *adap)
   136	{
 > 137		return gpiod_get_value_cansleep(adap->bus_recovery_info->scl_gpiod);
   138	}
   139	
   140	static void set_scl_gpio_value(struct i2c_adapter *adap, int val)
   141	{
 > 142		gpiod_set_value_cansleep(adap->bus_recovery_info->scl_gpiod, val);
   143	}
   144	

---
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 GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux