tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git sched/core
head: f9768f96aa02d96ebce832c1e0a597448f1f4478
commit: f9768f96aa02d96ebce832c1e0a597448f1f4478 [5/5] cpumask/hotplug: Fix cpu_dying()
state tracking
config: sparc-randconfig-p001-20210420 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 9.3.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://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 f9768f96aa02d96ebce832c1e0a597448f1f4478
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=sparc
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 include/linux/kernel.h:10,
from include/linux/sched/mm.h:5,
from kernel/cpu.c:6:
kernel/cpu.c: In function 'cpuhp_set_state':
> kernel/cpu.c:475:16: error: 'cpu' undeclared (first use
in this function)
475 | if (cpu_dying(cpu) != !bringup)
| ^~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
| ^~~~
kernel/cpu.c:475:2: note: in expansion of macro 'if'
475 | if (cpu_dying(cpu) != !bringup)
| ^~
kernel/cpu.c:475:16: note: each undeclared identifier is reported only once for each
function it appears in
475 | if (cpu_dying(cpu) != !bringup)
| ^~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
| ^~~~
kernel/cpu.c:475:2: note: in expansion of macro 'if'
475 | if (cpu_dying(cpu) != !bringup)
| ^~
kernel/cpu.c: In function 'cpuhp_reset_state':
kernel/cpu.c:509:16: error: 'cpu' undeclared (first use in this function)
509 | if (cpu_dying(cpu) != !bringup)
| ^~~
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) :
__trace_if_value(cond))
| ^~~~
kernel/cpu.c:509:2: note: in expansion of macro 'if'
509 | if (cpu_dying(cpu) != !bringup)
| ^~
vim +/cpu +475 kernel/cpu.c
462
463 static inline enum cpuhp_state
464 cpuhp_set_state(struct cpuhp_cpu_state *st, enum cpuhp_state target)
465 {
466 enum cpuhp_state prev_state = st->state;
467 bool bringup = st->state < target;
468
469 st->rollback = false;
470 st->last = NULL;
471
472 st->target = target;
473 st->single = false;
474 st->bringup = bringup;
475 if (cpu_dying(cpu) != !bringup)
476 set_cpu_dying(cpu, !bringup);
477
478 return prev_state;
479 }
480
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org