lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201101856.jfl5AsHo-lkp@intel.com>
Date:   Mon, 10 Jan 2022 18:49:44 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [mingo-tip:master 2018/2375] arch/mips/ralink/bootrom.c:34:19:
 error: expected '=', ',', ';', 'asm' or '__attribute__' before
 'bootrom_setup'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head:   391ce485ced0e47bf8d2ce8bc32bb87887e16656
commit: 8e681df39108b99bab14c70b640024589fa9fa7b [2018/2375] headers/deps: fs: Optimize <linux/seq_file.h> dependencies
config: mips-vocore2_defconfig (https://download.01.org/0day-ci/archive/20220110/202201101856.jfl5AsHo-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=8e681df39108b99bab14c70b640024589fa9fa7b
        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 8e681df39108b99bab14c70b640024589fa9fa7b
        # 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/ralink/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All error/warnings (new ones prefixed by >>):

>> arch/mips/ralink/bootrom.c:34:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'bootrom_setup'
      34 | static int __init bootrom_setup(void)
         |                   ^~~~~~~~~~~~~
>> arch/mips/ralink/bootrom.c:40:1: warning: data definition has no type or storage class
      40 | postcore_initcall(bootrom_setup);
         | ^~~~~~~~~~~~~~~~~
>> arch/mips/ralink/bootrom.c:40:1: error: type defaults to 'int' in declaration of 'postcore_initcall' [-Werror=implicit-int]
>> arch/mips/ralink/bootrom.c:40:1: warning: parameter names (without types) in function declaration
   arch/mips/ralink/bootrom.c:27:37: warning: 'bootrom_file_ops' defined but not used [-Wunused-const-variable=]
      27 | static const struct file_operations bootrom_file_ops = {
         |                                     ^~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +34 arch/mips/ralink/bootrom.c

7a1a44c909fcb4 John Crispin       2013-05-21  33  
389500696810f5 Christophe JAILLET 2020-05-31 @34  static int __init bootrom_setup(void)
7a1a44c909fcb4 John Crispin       2013-05-21  35  {
4c90de4dd33d90 Greg Kroah-Hartman 2019-01-22  36  	debugfs_create_file("bootrom", 0444, NULL, NULL, &bootrom_file_ops);
7a1a44c909fcb4 John Crispin       2013-05-21  37  	return 0;
7a1a44c909fcb4 John Crispin       2013-05-21  38  }
7a1a44c909fcb4 John Crispin       2013-05-21  39  
7a1a44c909fcb4 John Crispin       2013-05-21 @40  postcore_initcall(bootrom_setup);

:::::: The code at line 34 was first introduced by commit
:::::: 389500696810f5aa8fc1fe6f375b9dabd111e1d6 MIPS: ralink: bootrom: mark a function as __init to save some memory

:::::: TO: Christophe JAILLET <christophe.jaillet@...adoo.fr>
:::::: CC: Thomas Bogendoerfer <tsbogend@...ha.franken.de>

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ