From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3283485983001898342==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [mingo-tip:master 2296/2300] arch/mips/dec/platform.c:40:1: warning: data definition has no type or storage class Date: Sun, 09 Jan 2022 02:02:59 +0800 Message-ID: <202201090116.tHcuQTi6-lkp@intel.com> List-Id: --===============3283485983001898342== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 dependencies, remove inclusion config: mips-decstation_defconfig (https://download.01.org/0day-ci/archive/= 20220109/202201090116.tHcuQTi6-lkp(a)intel.com/config) compiler: mipsel-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 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/com= mit/?id=3D4d78e75186678c7853df35a422c167910b400856 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=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dmips SHELL=3D/bin/bash arch/mips/dec/ drivers/net/fdd= i/ drivers/video/fbdev/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): arch/mips/dec/platform.c:33:19: error: expected '=3D', ',', ';', 'asm' o= r '__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 s= torage class 40 | device_initcall(dec_add_devices); | ^~~~~~~~~~~~~~~ arch/mips/dec/platform.c:40:1: error: type defaults to 'int' in declarat= ion of 'device_initcall' [-Werror=3Dimplicit-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 no= t used [-Wunused-variable] 25 | static struct platform_device dec_rtc_device =3D { | ^~~~~~~~~~~~~~ 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_de= vices); :::::: The code at line 40 was first introduced by commit :::::: fae67ad431146d2584dd813cbc198400a477aa53 arch/mips/dec: switch DECst= ation systems to rtc-cmos :::::: TO: Maciej W. Rozycki :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3283485983001898342==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E70DDC433EF for ; Sat, 8 Jan 2022 18:03:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234836AbiAHSDF (ORCPT ); Sat, 8 Jan 2022 13:03:05 -0500 Received: from mga11.intel.com ([192.55.52.93]:40771 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbiAHSDE (ORCPT ); Sat, 8 Jan 2022 13:03:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641664984; x=1673200984; h=date:from:to:cc:subject:message-id:mime-version; bh=2rMiB23RrBXFq59PRQ0g6T4DlKS+43jQiD+emg+dDP8=; b=ddOqZXlu4CqESJt0xjPvE9JiGwm7CJfMWsderLWaYGGwZiufRZbzG3Ds qJtKj3u2lKSy0VWxErkYV30tiJ68LxcXSX5GkyH7PGk7R3y5+KQq8KFtp VDoOxk+VcURO4qLrpazhxRHCcPe4YwIr7AsGVo1R9FVwXEt//BXjAPBZj yCeci/oUQ9reh82tXosU3UMw0TL90+/zmHwDxAuefl3lEgtdNuzcbkzYl elUMD1ex4PjtOcX1rzj4Ppumteg+YbqVcn8660YYaUwgRb3VnWZOc8hdv Cn9iipvvmkuv6oSBP792Vntaj4Qixns430HHGLJ1gJBSreC8ODNUVCcHX Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10220"; a="240580160" X-IronPort-AV: E=Sophos;i="5.88,273,1635231600"; d="scan'208";a="240580160" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jan 2022 10:03:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,273,1635231600"; d="scan'208";a="527765215" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 08 Jan 2022 10:03:03 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1n6G3S-0000t6-JF; Sat, 08 Jan 2022 18:03:02 +0000 Date: Sun, 9 Jan 2022 02:02:59 +0800 From: kernel test robot To: Ingo Molnar Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [mingo-tip:master 2296/2300] arch/mips/dec/platform.c:40:1: warning: data definition has no type or storage class Message-ID: <202201090116.tHcuQTi6-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 dependencies, remove 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 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 :::::: CC: Linus Torvalds --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org