public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [mingo-tip:master 557/2335] kernel/user-return-notifier.c:41:10: error: implicit declaration of function 'preempt_disable'
@ 2022-03-16 21:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-16 21:10 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: llvm, kbuild-all, linux-kernel

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@intel.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@redhat.com>
:::::: CC: H. Peter Anvin <hpa@zytor.com>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-16 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-16 21:10 [mingo-tip:master 557/2335] kernel/user-return-notifier.c:41:10: error: implicit declaration of function 'preempt_disable' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox