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]

base: i2c/for-next
config: arm64-allmodconfig (attached as .config)
compiler: aarch64-linux-gnu-gcc (Debian 6.1.1-9) 6.1.1 20160705
wget -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
>> 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 };
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);
683 static void __exit sprd_i2c_exit(void)
684 {

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation

Attachment: .config.gz
Description: application/gzip