mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mingo-tip:sched/headers 2037/2375] drivers/video/console/newport_con.c:746:1: warning: data definition has no type or storage class
Date: Sun, 9 Jan 2022 01:11:52 +0800	[thread overview]
Message-ID: <202201090153.UNw6LldM-lkp@intel.com> (raw)

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head:   351ceeab2ef96ab2fc306934ddb201b44636181b
commit: 54c5029d29aefc6e1cdd9ce1650822a5a4e1105a [2037/2375] headers/deps: dev/core: Optimize <linux/device.h> dependencies, remove <linux/device_api.h> inclusion
config: mips-buildonly-randconfig-r003-20220108 (https://download.01.org/0day-ci/archive/20220109/202201090153.UNw6LldM-lkp@intel.com/config)
compiler: mips-linux-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/mingo/tip.git/commit/?id=54c5029d29aefc6e1cdd9ce1650822a5a4e1105a
        git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git
        git fetch --no-tags mingo-tip sched/headers
        git checkout 54c5029d29aefc6e1cdd9ce1650822a5a4e1105a
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=mips SHELL=/bin/bash drivers/video/console/

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/video/console/newport_con.c:746:1: warning: data definition has no type or storage class
     746 | module_driver(newport_driver, gio_register_driver, gio_unregister_driver);
         | ^~~~~~~~~~~~~
   drivers/video/console/newport_con.c:746:1: error: type defaults to 'int' in declaration of 'module_driver' [-Werror=implicit-int]
>> drivers/video/console/newport_con.c:746:1: warning: parameter names (without types) in function declaration
   drivers/video/console/newport_con.c:740:26: warning: 'newport_driver' defined but not used [-Wunused-variable]
     740 | static struct gio_driver newport_driver = {
         |                          ^~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +746 drivers/video/console/newport_con.c

e84de0c6190503 Thomas Bogendoerfer 2011-11-22  739  
e84de0c6190503 Thomas Bogendoerfer 2011-11-22  740  static struct gio_driver newport_driver = {
e84de0c6190503 Thomas Bogendoerfer 2011-11-22  741  	.name = "newport",
e84de0c6190503 Thomas Bogendoerfer 2011-11-22  742  	.id_table = newport_ids,
e84de0c6190503 Thomas Bogendoerfer 2011-11-22  743  	.probe = newport_probe,
e84de0c6190503 Thomas Bogendoerfer 2011-11-22  744  	.remove = newport_remove,
e84de0c6190503 Thomas Bogendoerfer 2011-11-22  745  };
9b07655c7740a9 Jiri Slaby          2020-08-18 @746  module_driver(newport_driver, gio_register_driver, gio_unregister_driver);
^1da177e4c3f41 Linus Torvalds      2005-04-16  747  

:::::: The code at line 746 was first introduced by commit
:::::: 9b07655c7740a97b918ebe7dc59447e29e22a957 newport_con: make module's init & exit static using module_driver

:::::: TO: Jiri Slaby <jslaby@suse.cz>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2022-01-08 17:12 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=202201090153.UNw6LldM-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@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

Powered by JetHome