[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202204191041.z5pcMgFP-lkp@intel.com>
Date: Tue, 19 Apr 2022 10:34:16 +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 1637/2356] kernel/entry/kvm.c:15:4: error:
implicit declaration of function 'clear_notify_signal' is invalid in C99
tree: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git sched/headers
head: af93551cf39027d176f30b9beafc60a4c130998a
commit: 7056b88fee812761b8c015f328951fa1f7522a75 [1637/2356] headers/deps: syscalls: Optimize <linux/syscalls.h> dependencies
config: x86_64-randconfig-a014-20220418 (https://download.01.org/0day-ci/archive/20220419/202204191041.z5pcMgFP-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 429cbac0390654f90bba18a41799464adf31a5ec)
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=7056b88fee812761b8c015f328951fa1f7522a75
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 7056b88fee812761b8c015f328951fa1f7522a75
# 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=x86_64 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 >>):
>> kernel/entry/kvm.c:15:4: error: implicit declaration of function 'clear_notify_signal' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
clear_notify_signal();
^
1 error generated.
vim +/clear_notify_signal +15 kernel/entry/kvm.c
935ace2fb5cc49 Thomas Gleixner 2020-07-22 8
935ace2fb5cc49 Thomas Gleixner 2020-07-22 9 static int xfer_to_guest_mode_work(struct kvm_vcpu *vcpu, unsigned long ti_work)
935ace2fb5cc49 Thomas Gleixner 2020-07-22 10 {
935ace2fb5cc49 Thomas Gleixner 2020-07-22 11 do {
935ace2fb5cc49 Thomas Gleixner 2020-07-22 12 int ret;
935ace2fb5cc49 Thomas Gleixner 2020-07-22 13
7c5d8fa6fbb12a Eric W. Biederman 2022-02-09 14 if (ti_work & (_TIF_SIGPENDING | _TIF_NOTIFY_SIGNAL)) {
7c5d8fa6fbb12a Eric W. Biederman 2022-02-09 @15 clear_notify_signal();
7c5d8fa6fbb12a Eric W. Biederman 2022-02-09 16 if (task_work_pending(current))
7c5d8fa6fbb12a Eric W. Biederman 2022-02-09 17 task_work_run();
7c5d8fa6fbb12a Eric W. Biederman 2022-02-09 18 }
12db8b690010cc Jens Axboe 2020-10-26 19
935ace2fb5cc49 Thomas Gleixner 2020-07-22 20 if (ti_work & _TIF_SIGPENDING) {
935ace2fb5cc49 Thomas Gleixner 2020-07-22 21 kvm_handle_signal_exit(vcpu);
935ace2fb5cc49 Thomas Gleixner 2020-07-22 22 return -EINTR;
935ace2fb5cc49 Thomas Gleixner 2020-07-22 23 }
935ace2fb5cc49 Thomas Gleixner 2020-07-22 24
935ace2fb5cc49 Thomas Gleixner 2020-07-22 25 if (ti_work & _TIF_NEED_RESCHED)
935ace2fb5cc49 Thomas Gleixner 2020-07-22 26 schedule();
935ace2fb5cc49 Thomas Gleixner 2020-07-22 27
3c532798ec96b6 Jens Axboe 2020-10-03 28 if (ti_work & _TIF_NOTIFY_RESUME)
03248addadf1a5 Eric W. Biederman 2022-02-09 29 resume_user_mode_work(NULL);
935ace2fb5cc49 Thomas Gleixner 2020-07-22 30
935ace2fb5cc49 Thomas Gleixner 2020-07-22 31 ret = arch_xfer_to_guest_mode_handle_work(vcpu, ti_work);
935ace2fb5cc49 Thomas Gleixner 2020-07-22 32 if (ret)
935ace2fb5cc49 Thomas Gleixner 2020-07-22 33 return ret;
935ace2fb5cc49 Thomas Gleixner 2020-07-22 34
6ce895128b3bff Mark Rutland 2021-11-29 35 ti_work = read_thread_flags();
935ace2fb5cc49 Thomas Gleixner 2020-07-22 36 } while (ti_work & XFER_TO_GUEST_MODE_WORK || need_resched());
935ace2fb5cc49 Thomas Gleixner 2020-07-22 37 return 0;
935ace2fb5cc49 Thomas Gleixner 2020-07-22 38 }
935ace2fb5cc49 Thomas Gleixner 2020-07-22 39
:::::: The code at line 15 was first introduced by commit
:::::: 7c5d8fa6fbb12a3f0eefe8762bfede508e147cb3 task_work: Decouple TIF_NOTIFY_SIGNAL and task_work
:::::: TO: Eric W. Biederman <ebiederm@...ssion.com>
:::::: CC: Eric W. Biederman <ebiederm@...ssion.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists