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 for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202201090604.UYYPTJHx-lkp@intel.com>
Date:   Sun, 9 Jan 2022 06:10:03 +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 2296/2300] arch/mips/dec/platform.c:33:19: error:
 expected '=', ',', ';', 'asm' or '__attribute__' before 'dec_add_devices'

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/202201090604.UYYPTJHx-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

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

All errors (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 +33 arch/mips/dec/platform.c

fae67ad431146d2 Maciej W. Rozycki 2014-06-06  32  
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 @33  static int __init dec_add_devices(void)
fae67ad431146d2 Maciej W. Rozycki 2014-06-06  34  {
fae67ad431146d2 Maciej W. Rozycki 2014-06-06  35  	dec_rtc_resources[0].start = RTC_PORT(0);
fae67ad431146d2 Maciej W. Rozycki 2014-06-06  36  	dec_rtc_resources[0].end = RTC_PORT(0) + dec_kn_slot_size - 1;
fae67ad431146d2 Maciej W. Rozycki 2014-06-06  37  	return platform_device_register(&dec_rtc_device);
fae67ad431146d2 Maciej W. Rozycki 2014-06-06  38  }
fae67ad431146d2 Maciej W. Rozycki 2014-06-06  39  
fae67ad431146d2 Maciej W. Rozycki 2014-06-06 @40  device_initcall(dec_add_devices);

:::::: The code at line 33 was first introduced by commit
:::::: fae67ad431146d2584dd813cbc198400a477aa53 arch/mips/dec: switch DECstation systems to rtc-cmos

:::::: TO: Maciej W. Rozycki <macro@...ux-mips.org>
:::::: CC: Linus Torvalds <torvalds@...ux-foundation.org>

---
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