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: <202202231135.jSEszXqu-lkp@intel.com>
Date:   Wed, 23 Feb 2022 11:27:44 +0800
From:   kernel test robot <lkp@...el.com>
To:     Ingo Molnar <mingo@...nel.org>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org
Subject: [mingo-tip:sched/headers 1839/2324] arch/mips/ath25/devices.h:36:10:
 error: implicit declaration of function 'smp_processor_id'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head:   7d9efc989eceed6a8fa475a186880ec4a1ad54a3
commit: 03d4ee3eff69c2a68c1717afc5a08d1142af6a57 [1839/2324] headers/deps: mm: Optimize <linux/node.h> dependencies
config: mips-ath25_defconfig (https://download.01.org/0day-ci/archive/20220223/202202231135.jSEszXqu-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e)
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
        # install mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/commit/?id=03d4ee3eff69c2a68c1717afc5a08d1142af6a57
        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 03d4ee3eff69c2a68c1717afc5a08d1142af6a57
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 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 >>):

   In file included from arch/mips/ath25/early_printk.c:14:
>> arch/mips/ath25/devices.h:36:10: error: implicit declaration of function 'smp_processor_id' [-Werror,-Wimplicit-function-declaration]
           return (current_cpu_data.cputype == CPU_4KEC);
                   ^
   arch/mips/include/asm/cpu-info.h:120:35: note: expanded from macro 'current_cpu_data'
   #define current_cpu_data cpu_data[smp_processor_id()]
                                     ^
   1 error generated.


vim +/smp_processor_id +36 arch/mips/ath25/devices.h

1ac91b1f686e9d Sergey Ryazanov 2014-10-29  33  
43cc739fd98b8c Sergey Ryazanov 2014-10-29  34  static inline bool is_ar2315(void)
43cc739fd98b8c Sergey Ryazanov 2014-10-29  35  {
43cc739fd98b8c Sergey Ryazanov 2014-10-29 @36  	return (current_cpu_data.cputype == CPU_4KEC);
43cc739fd98b8c Sergey Ryazanov 2014-10-29  37  }
43cc739fd98b8c Sergey Ryazanov 2014-10-29  38  

:::::: The code at line 36 was first introduced by commit
:::::: 43cc739fd98b8c517ad45756d869f866e746ba04 MIPS: ath25: add common parts

:::::: TO: Sergey Ryazanov <ryazanov.s.a@...il.com>
:::::: CC: Ralf Baechle <ralf@...ux-mips.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