From: kernel test robot <lkp@intel.com>
To: steven@liquorix.net
Cc: oe-kbuild-all@lists.linux.dev
Subject: [zen:6.1/prjc 284/376] kernel/sched/cputime.c:252:31: error: 'paravirt_steal_enabled' undeclared
Date: Sat, 25 Feb 2023 16:38:22 +0800 [thread overview]
Message-ID: <202302251601.05pQGUp5-lkp@intel.com> (raw)
Hi Alfred,
First bad commit (maybe != root cause):
tree: https://github.com/zen-kernel/zen-kernel 6.1/prjc
head: 16c9f17f2a21749a507d8b3358225d4d73cba785
commit: a9a7c3ea10ad1e83f4f64714235401ac4861dbfd [284/376] sched/alt: Headers cleanup
config: arm-allyesconfig (https://download.01.org/0day-ci/archive/20230225/202302251601.05pQGUp5-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
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://github.com/zen-kernel/zen-kernel/commit/a9a7c3ea10ad1e83f4f64714235401ac4861dbfd
git remote add zen https://github.com/zen-kernel/zen-kernel
git fetch --no-tags zen 6.1/prjc
git checkout a9a7c3ea10ad1e83f4f64714235401ac4861dbfd
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302251601.05pQGUp5-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from kernel/sched/build_policy.c:43:
kernel/sched/idle.c: In function 'cpu_idle_poll':
kernel/sched/idle.c:56:9: error: implicit declaration of function 'ct_idle_enter'; did you mean 'cpuidle_enter'? [-Werror=implicit-function-declaration]
56 | ct_idle_enter();
| ^~~~~~~~~~~~~
| cpuidle_enter
kernel/sched/idle.c:63:9: error: implicit declaration of function 'ct_idle_exit'; did you mean 'ct_irq_exit'? [-Werror=implicit-function-declaration]
63 | ct_idle_exit();
| ^~~~~~~~~~~~
| ct_irq_exit
In file included from kernel/sched/build_policy.c:56:
kernel/sched/cputime.c: In function 'steal_account_process_time':
>> kernel/sched/cputime.c:252:31: error: 'paravirt_steal_enabled' undeclared (first use in this function)
252 | if (static_key_false(¶virt_steal_enabled)) {
| ^~~~~~~~~~~~~~~~~~~~~~
kernel/sched/cputime.c:252:31: note: each undeclared identifier is reported only once for each function it appears in
>> kernel/sched/cputime.c:255:25: error: implicit declaration of function 'paravirt_steal_clock' [-Werror=implicit-function-declaration]
255 | steal = paravirt_steal_clock(smp_processor_id());
| ^~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/paravirt_steal_enabled +252 kernel/sched/cputime.c
1fcf54deb767d47 Josh Don 2022-06-29 243
03cbc732639ddca Wanpeng Li 2016-08-17 244 /*
03cbc732639ddca Wanpeng Li 2016-08-17 245 * When a guest is interrupted for a longer amount of time, missed clock
03cbc732639ddca Wanpeng Li 2016-08-17 246 * ticks are not redelivered later. Due to that, this function may on
03cbc732639ddca Wanpeng Li 2016-08-17 247 * occasion account more time than the calling functions think elapsed.
03cbc732639ddca Wanpeng Li 2016-08-17 248 */
2b1f967d80e8e5d Frederic Weisbecker 2017-01-31 249 static __always_inline u64 steal_account_process_time(u64 maxtime)
73fbec604432e1f Frederic Weisbecker 2012-06-16 250 {
73fbec604432e1f Frederic Weisbecker 2012-06-16 251 #ifdef CONFIG_PARAVIRT
73fbec604432e1f Frederic Weisbecker 2012-06-16 @252 if (static_key_false(¶virt_steal_enabled)) {
2b1f967d80e8e5d Frederic Weisbecker 2017-01-31 253 u64 steal;
73fbec604432e1f Frederic Weisbecker 2012-06-16 254
73fbec604432e1f Frederic Weisbecker 2012-06-16 @255 steal = paravirt_steal_clock(smp_processor_id());
73fbec604432e1f Frederic Weisbecker 2012-06-16 256 steal -= this_rq()->prev_steal_time;
2b1f967d80e8e5d Frederic Weisbecker 2017-01-31 257 steal = min(steal, maxtime);
2b1f967d80e8e5d Frederic Weisbecker 2017-01-31 258 account_steal_time(steal);
2b1f967d80e8e5d Frederic Weisbecker 2017-01-31 259 this_rq()->prev_steal_time += steal;
73fbec604432e1f Frederic Weisbecker 2012-06-16 260
2b1f967d80e8e5d Frederic Weisbecker 2017-01-31 261 return steal;
73fbec604432e1f Frederic Weisbecker 2012-06-16 262 }
73fbec604432e1f Frederic Weisbecker 2012-06-16 263 #endif
807e5b80687c067 Wanpeng Li 2016-06-13 264 return 0;
73fbec604432e1f Frederic Weisbecker 2012-06-16 265 }
73fbec604432e1f Frederic Weisbecker 2012-06-16 266
:::::: The code at line 252 was first introduced by commit
:::::: 73fbec604432e1fbfeb1bc59a110dac1f98160f6 sched: Move cputime code to its own file
:::::: TO: Frederic Weisbecker <fweisbec@gmail.com>
:::::: CC: Frederic Weisbecker <fweisbec@gmail.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-02-25 8:38 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=202302251601.05pQGUp5-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=steven@liquorix.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.