Re: [PATCH v2 2/2] i2c: Add Spreadtrum I2C controller driver
From: kbuild test robot
Date: Sat Jun 24 2017 - 21:19:26 EST
Hi Baolin,
[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on v4.12-rc6 next-20170623]
[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/Baolin-Wang/dt-bindings-i2c-Add-Spreadtrum-I2C-controller-documentation/20170622-111344
base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-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=arm64
All errors (new ones prefixed by >>):
drivers/i2c/busses/i2c-sprd.c:686:1: warning: data definition has no type or storage class
arch_initcall_sync(sprd_i2c_init);
^~~~~~~~~~~~~~~~~~
>> drivers/i2c/busses/i2c-sprd.c:686:1: error: type defaults to 'int' in declaration of 'arch_initcall_sync' [-Werror=implicit-int]
drivers/i2c/busses/i2c-sprd.c:686:1: warning: parameter names (without types) in function declaration
drivers/i2c/busses/i2c-sprd.c:682:12: warning: 'sprd_i2c_init' defined but not used [-Wunused-function]
static int sprd_i2c_init(void)
^~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +686 drivers/i2c/busses/i2c-sprd.c
680 };
681
682 static int sprd_i2c_init(void)
683 {
684 return platform_driver_register(&sprd_i2c_driver);
685 }
> 686 arch_initcall_sync(sprd_i2c_init);
687
688 static void sprd_i2c_exit(void)
689 {
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip