Messages in this thread | | | Date | Sun, 9 Jan 2022 01:11:52 +0800 | From | kernel test robot <> | Subject | [mingo-tip:sched/headers 2037/2375] drivers/video/console/newport_con.c:746:1: warning: data definition has no type or storage class |
| |
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
| |