linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [wsa:renesas/topic/rcar-i2c-recovery 3/33] drivers//i2c/i2c-core-base.c:137:9: error: implicit declaration of function 'gpiod_get_value_cansleep'
@ 2017-12-04 11:23 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2017-12-04 11:23 UTC (permalink / raw)
  To: Wolfram Sang; +Cc: kbuild-all, linux-i2c

[-- Attachment #1: Type: text/plain, Size: 2822 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/topic/rcar-i2c-recovery
head:   3b8d1dbaefe52dfbecef1713d028e446c367d184
commit: 3991c5c80beaf7eb9bce61e0b2f8f449e351a38e [3/33] i2c: Switch to using gpiod interface for gpio bus recovery
config: ia64-generic_defconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 3991c5c80beaf7eb9bce61e0b2f8f449e351a38e
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

Note: the wsa/renesas/topic/rcar-i2c-recovery HEAD 3b8d1dbaefe52dfbecef1713d028e446c367d184 builds fine.
      It only hurts bisectibility.

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' [-Werror=implicit-function-declaration]
     return gpiod_get_value_cansleep(adap->bus_recovery_info->scl_gpiod);
            ^~~~~~~~~~~~~~~~~~~~~~~~
   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' [-Werror=implicit-function-declaration]
     gpiod_set_value_cansleep(adap->bus_recovery_info->scl_gpiod, val);
     ^~~~~~~~~~~~~~~~~~~~~~~~
   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' [-Werror=implicit-function-declaration]
     bri->scl_gpiod = gpio_to_desc(bri->scl_gpio);
                      ^~~~~~~~~~~~
   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 +/gpiod_get_value_cansleep +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 #2: .config.gz --]
[-- Type: application/gzip, Size: 18935 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-04 11:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-04 11:23 [wsa:renesas/topic/rcar-i2c-recovery 3/33] drivers//i2c/i2c-core-base.c:137:9: error: implicit declaration of function 'gpiod_get_value_cansleep' kbuild test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).