Messages in this thread | | | Date | Sun, 9 Jan 2022 02:02:59 +0800 | From | kernel test robot <> | Subject | [mingo-tip:master 2296/2300] arch/mips/dec/platform.c:40:1: warning: data definition has no type or storage class |
| |
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master head: 4e348e961395297bb17f101cc63bc133d8a348e9 commit: 4d78e75186678c7853df35a422c167910b400856 [2296/2300] headers/deps: driver/core: Optimize <linux/device/driver.h> dependencies, remove <linux/module.h> inclusion config: mips-decstation_defconfig (https://download.01.org/0day-ci/archive/20220109/202201090116.tHcuQTi6-lkp@intel.com/config) compiler: mipsel-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=4d78e75186678c7853df35a422c167910b400856 git remote add mingo-tip git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git git fetch --no-tags mingo-tip master git checkout 4d78e75186678c7853df35a422c167910b400856 # 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 arch/mips/dec/ drivers/net/fddi/ drivers/video/fbdev/
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 >>):
arch/mips/dec/platform.c:33:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'dec_add_devices' 33 | static int __init dec_add_devices(void) | ^~~~~~~~~~~~~~~ >> arch/mips/dec/platform.c:40:1: warning: data definition has no type or storage class 40 | device_initcall(dec_add_devices); | ^~~~~~~~~~~~~~~ arch/mips/dec/platform.c:40:1: error: type defaults to 'int' in declaration of 'device_initcall' [-Werror=implicit-int] >> arch/mips/dec/platform.c:40:1: warning: parameter names (without types) in function declaration arch/mips/dec/platform.c:25:31: warning: 'dec_rtc_device' defined but not used [-Wunused-variable] 25 | static struct platform_device dec_rtc_device = { | ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors
vim +40 arch/mips/dec/platform.c
fae67ad431146d Maciej W. Rozycki 2014-06-06 39 fae67ad431146d Maciej W. Rozycki 2014-06-06 @40 device_initcall(dec_add_devices);
:::::: The code at line 40 was first introduced by commit :::::: fae67ad431146d2584dd813cbc198400a477aa53 arch/mips/dec: switch DECstation systems to rtc-cmos
:::::: TO: Maciej W. Rozycki <macro@linux-mips.org> :::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
| |