tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core
head: e337f389dc4d3748ba4342bd2d1c2133346b8691
commit: 92318ca36a5876d444849ea850534488e843f077 [2/4] sched/hotplug: Ensure only per-cpu
kthreads run during hotplug
config: arm-randconfig-r002-20200914 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
b2c32c90bab09a6e2c1f370429db26017a182143)
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
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git checkout 92318ca36a5876d444849ea850534488e843f077
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from kernel//sched/core.c:13:
kernel//sched/sched.h:1225:20: error: no member named 'balance_callback' in
'struct rq'
SCHED_WARN_ON(rq->balance_callback);
~~ ^
kernel//sched/sched.h:82:37: note: expanded from macro 'SCHED_WARN_ON'
# define SCHED_WARN_ON(x) WARN_ONCE(x, #x)
^
include/asm-generic/bug.h:157:27: note: expanded from macro 'WARN_ONCE'
int __ret_warn_once = !!(condition); \
^~~~~~~~~
> kernel//sched/core.c:3584:19: error: no member named
'balance_flags' in 'struct rq'
if
(unlikely(rq->balance_flags)) {
~~ ^
include/linux/compiler.h:48:41: note: expanded from macro 'unlikely'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
include/linux/compiler.h:33:34: note: expanded from macro '__branch_check__'
______r = __builtin_expect(!!(x), expect); \
^
> kernel//sched/core.c:3584:19: error: no member named
'balance_flags' in 'struct rq'
if
(unlikely(rq->balance_flags)) {
~~ ^
include/linux/compiler.h:48:68: note: expanded from macro 'unlikely'
# define unlikely(x) (__branch_check__(x, 0, __builtin_constant_p(x)))
^
include/linux/compiler.h:35:19: note: expanded from macro '__branch_check__'
expect, is_constant); \
^~~~~~~~~~~
kernel//sched/core.c:3590:13: error: no member named 'balance_flags' in
'struct rq'
!(rq->balance_flags & BALANCE_PUSH) ||
~~ ^
> kernel//sched/core.c:3590:29: error: use of undeclared identifier
'BALANCE_PUSH'
!(rq->balance_flags &
BALANCE_PUSH) ||
^
5 errors generated.
#
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue sched/core
git checkout 92318ca36a5876d444849ea850534488e843f077
vim +3584 kernel//sched/core.c
3575
3576 static inline void finish_lock_switch(struct rq *rq)
3577 {
3578 /*
3579 * If we are tracking spinlock dependencies then we have to
3580 * fix up the runqueue lock - which gets 'carried over' from
3581 * prev into current:
3582 */
3583 spin_acquire(&rq->lock.dep_map, 0, 0, _THIS_IP_);
3584 if (unlikely(rq->balance_flags)) {
3585 /*
3586 * Run the balance_callbacks, except on hotplug
3587 * when we need to push the current task away.
3588 */
3589 if (!IS_ENABLED(CONFIG_HOTPLUG_CPU) ||
3590 !(rq->balance_flags & BALANCE_PUSH) ||
3591 !balance_push(rq))
3592 __balance_callbacks(rq);
3593 }
3594 raw_spin_unlock_irq(&rq->lock);
3595 }
3596
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org