Re: [PATCH 2/2] i2c: Add Spreadtrum I2C controller driver

From: kbuild test robot
Date: Fri Jun 16 2017 - 13:10:38 EST


Hi Baolin,

[auto build test ERROR on wsa/i2c/for-next]
[also build test ERROR on v4.12-rc5 next-20170616]
[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/20170616-072616
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 error/warnings (new ones prefixed by >>):

>> drivers/i2c/busses/i2c-sprd.c:681:1: warning: data definition has no type or storage class
arch_initcall_sync(sprd_i2c_init);
^~~~~~~~~~~~~~~~~~
>> drivers/i2c/busses/i2c-sprd.c:681:1: error: type defaults to 'int' in declaration of 'arch_initcall_sync' [-Werror=implicit-int]
>> drivers/i2c/busses/i2c-sprd.c:681:1: warning: parameter names (without types) in function declaration
drivers/i2c/busses/i2c-sprd.c:677:19: warning: 'sprd_i2c_init' defined but not used [-Wunused-function]
static int __init sprd_i2c_init(void)
^~~~~~~~~~~~~
cc1: some warnings being treated as errors

vim +681 drivers/i2c/busses/i2c-sprd.c

675 };
676
677 static int __init sprd_i2c_init(void)
678 {
679 return platform_driver_register(&sprd_i2c_driver);
680 }
> 681 arch_initcall_sync(sprd_i2c_init);
682
683 static void __exit sprd_i2c_exit(void)
684 {

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

Attachment: .config.gz
Description: application/gzip