Messages in this thread | | | Date | Wed, 10 Nov 2021 06:10:25 +0800 | From | kernel test robot <> | Subject | [broonie-misc:mfd-spi-ids 1/3] drivers/mfd/altera-a10sr.c:153:1: warning: data definition has no type or storage class |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git mfd-spi-ids head: d29471da2a53e3ebaa9a9abd6c03918053719711 commit: 0f118caf3351599b89613e89e45bcaadffad1ab9 [1/3] mfd: altr_a10sr: Add SPI device ID table config: arm-socfpga_defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git/commit/?id=0f118caf3351599b89613e89e45bcaadffad1ab9 git remote add broonie-misc https://git.kernel.org/pub/scm/linux/kernel/git/broonie/misc.git git fetch --no-tags broonie-misc mfd-spi-ids git checkout 0f118caf3351599b89613e89e45bcaadffad1ab9 # save the attached .config to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/mfd/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
>> drivers/mfd/altera-a10sr.c:153:1: warning: data definition has no type or storage class 153 | MODULE_DEVICE_TABLE(of, altr_a10sr_spi_of_match); | ^~~~~~~~~~~~~~~~~~~ drivers/mfd/altera-a10sr.c:153:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int] >> drivers/mfd/altera-a10sr.c:153:1: warning: parameter names (without types) in function declaration drivers/mfd/altera-a10sr.c:159:1: warning: data definition has no type or storage class 159 | MODULE_DEVICE_TABLE(spi, altr_a10sr_spi_ids); | ^~~~~~~~~~~~~~~~~~~ drivers/mfd/altera-a10sr.c:159:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int] drivers/mfd/altera-a10sr.c:159:1: warning: parameter names (without types) in function declaration cc1: some warnings being treated as errors
vim +153 drivers/mfd/altera-a10sr.c
148 149 static const struct of_device_id altr_a10sr_spi_of_match[] = { 150 { .compatible = "altr,a10sr" }, 151 { }, 152 }; > 153 MODULE_DEVICE_TABLE(of, altr_a10sr_spi_of_match); 154
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |