From: kernel test robot <lkp@intel.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
linux-kernel@vger.kernel.org
Subject: [mingo-tip:master 557/2335] kernel/user-return-notifier.c:41:10: error: implicit declaration of function 'preempt_disable'
Date: Thu, 17 Mar 2022 05:10:32 +0800 [thread overview]
Message-ID: <202203170515.1TR383cF-lkp@intel.com> (raw)
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
reply other threads:[~2022-03-16 21:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202203170515.1TR383cF-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mingo@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox