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]
Date:   Thu, 17 Mar 2022 05:10:32 +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:master 557/2335] kernel/user-return-notifier.c:41:10:
 error: implicit declaration of function 'preempt_disable'

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git master
head:   85293bf3fca6d85608cff1447ce3097583f15fab
commit: 025a44143e076e9fc9c3ae07986dd86b01330f75 [557/2335] headers/deps: Optimize <linux/sched.h> dependencies, remove <linux/sched/cond_resched.h> inclusion
config: i386-randconfig-a016-20220314 (https://download.01.org/0day-ci/archive/20220317/202203170515.1TR383cF-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a6ec1e3d798f8eab43fb3a91028c6ab04e115fcb)
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=025a44143e076e9fc9c3ae07986dd86b01330f75
        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 025a44143e076e9fc9c3ae07986dd86b01330f75
        # 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=i386 SHELL=/bin/bash

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

Note: the mingo-tip/master HEAD 85293bf3fca6d85608cff1447ce3097583f15fab builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

>> kernel/user-return-notifier.c:41:10: error: implicit declaration of function 'preempt_disable' [-Werror,-Wimplicit-function-declaration]
           head = &get_cpu_var(return_notifier_list);
                   ^
   include/linux/percpu-defs.h:277:2: note: expanded from macro 'get_cpu_var'
           preempt_disable();                                              \
           ^
>> kernel/user-return-notifier.c:44:2: error: implicit declaration of function 'preempt_enable' [-Werror,-Wimplicit-function-declaration]
           put_cpu_var(return_notifier_list);
           ^
   include/linux/percpu-defs.h:288:2: note: expanded from macro 'put_cpu_var'
           preempt_enable();                                               \
           ^
   2 errors generated.


vim +/preempt_disable +41 kernel/user-return-notifier.c

7c68af6e32c739 Avi Kivity       2009-09-19  33  
7c68af6e32c739 Avi Kivity       2009-09-19  34  /* Calls registered user return notifiers */
7c68af6e32c739 Avi Kivity       2009-09-19  35  void fire_user_return_notifiers(void)
7c68af6e32c739 Avi Kivity       2009-09-19  36  {
7c68af6e32c739 Avi Kivity       2009-09-19  37  	struct user_return_notifier *urn;
b67bfe0d42cac5 Sasha Levin      2013-02-27  38  	struct hlist_node *tmp2;
7c68af6e32c739 Avi Kivity       2009-09-19  39  	struct hlist_head *head;
7c68af6e32c739 Avi Kivity       2009-09-19  40  
7c68af6e32c739 Avi Kivity       2009-09-19 @41  	head = &get_cpu_var(return_notifier_list);
b67bfe0d42cac5 Sasha Levin      2013-02-27  42  	hlist_for_each_entry_safe(urn, tmp2, head, link)
7c68af6e32c739 Avi Kivity       2009-09-19  43  		urn->on_user_return(urn);
3c912b6edaac56 Stephen Rothwell 2009-11-02 @44  	put_cpu_var(return_notifier_list);

:::::: The code at line 41 was first introduced by commit
:::::: 7c68af6e32c73992bad24107311f3433c89016e2 core, x86: Add user return notifiers

:::::: TO: Avi Kivity <avi@...hat.com>
:::::: CC: H. Peter Anvin <hpa@...or.com>

---
0-DAY CI Kernel Test Service
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