Re: [PATCH 1/6] sh: sh7785lcr: add GPIO lookup table for i2c controller reset

From: kbuild test robot
Date: Sun Jul 02 2017 - 12:37:20 EST


Hi Chris,

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on v4.12-rc7 next-20170630]
[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/Chris-Packham/sh-sh7785lcr-add-GPIO-lookup-table-for-i2c-controller-reset/20170702-214426
base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
config: sh-sh7785lcr_32bit_defconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
wget https://raw.githubusercontent.com/01org/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sh

All errors (new ones prefixed by >>):

arch/sh/boards/board-sh7785lcr.c: In function 'sh7785lcr_devices_setup':
>> arch/sh/boards/board-sh7785lcr.c:295:2: error: implicit declaration of function 'gpiod_add_lookup' [-Werror=implicit-function-declaration]
gpiod_add_lookup(&i2c_gpio_table);
^~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +/gpiod_add_lookup +295 arch/sh/boards/board-sh7785lcr.c

289
290 if (mach_is_sh7785lcr_pt()) {
291 i2c_device.resource = i2c_proto_resources;
292 i2c_device.num_resources = ARRAY_SIZE(i2c_proto_resources);
293 }
294
> 295 gpiod_add_lookup(&i2c_gpio_table);
296 return platform_add_devices(sh7785lcr_devices,
297 ARRAY_SIZE(sh7785lcr_devices));
298 }

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

Attachment: .config.gz
Description: application/gzip