Thread (11 messages) 11 messages, 3 authors, 2016-08-16

Re: [PATCH v2 4/4] power: sbs-battery: Use gpio_desc and sleeping calls for battery detect

From: kbuild test robot <hidden>
Date: 2016-07-30 23:38:21

Hi,

[auto build test ERROR on battery/master]
[also build test ERROR on v4.7 next-20160729]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Phil-Reid/power-sbs-battery-fixup-gpio-detect-irq-handling/20160725-160137
base:   git://git.infradead.org/battery-2.6.git master
config: x86_64-randconfig-s1-07310624 (attached as .config)
compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/power/sbs-battery.c: In function 'sbs_get_battery_presence_and_health':
quoted
drivers/power/sbs-battery.c:305: error: implicit declaration of function 'gpiod_get_value_cansleep'
   drivers/power/sbs-battery.c: In function 'sbs_populate_pdata':
   drivers/power/sbs-battery.c:743: error: implicit declaration of function 'gpio_to_desc'
   drivers/power/sbs-battery.c:743: warning: assignment makes pointer from integer without a cast
   drivers/power/sbs-battery.c: In function 'sbs_probe':
quoted
drivers/power/sbs-battery.c:870: error: implicit declaration of function 'gpiod_to_irq'
vim +/gpiod_get_value_cansleep +305 drivers/power/sbs-battery.c

   299		union power_supply_propval *val)
   300	{
   301		s32 ret;
   302		struct sbs_info *chip = i2c_get_clientdata(client);
   303	
   304		if (psp == POWER_SUPPLY_PROP_PRESENT && chip->gpio_detect) {
 > 305			ret = gpiod_get_value_cansleep(chip->gpio_detect);
   306			if (ret < 0)
   307				return ret;
   308			val->intval = ret;

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachments

  • .config.gz [application/octet-stream] 27186 bytes
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help