public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [broonie-misc:mfd-spi-ids 1/3] drivers/mfd/altera-a10sr.c:153:1: warning: data definition has no type or storage class
@ 2021-11-09 22:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-11-09 22:10 UTC (permalink / raw)
  To: Mark Brown; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2428 bytes --]

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27682 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-11-09 22:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-09 22:10 [broonie-misc:mfd-spi-ids 1/3] drivers/mfd/altera-a10sr.c:153:1: warning: data definition has no type or storage class kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox