public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mark Brown <broonie@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [broonie-misc:mfd-spi-ids 1/3] drivers/mfd/altera-a10sr.c:153:1: warning: data definition has no type or storage class
Date: Wed, 10 Nov 2021 06:10:25 +0800	[thread overview]
Message-ID: <202111100619.ueKCPUVv-lkp@intel.com> (raw)

[-- 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 --]

                 reply	other threads:[~2021-11-09 22:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202111100619.ueKCPUVv-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=broonie@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox