[tip:smp/urgent 6/7] kernel/cpu.c:97:41: error: 'struct cpuhp_cpu_state' has no member named 'done_up'

From: kbuild test robot
Date: Mon Sep 25 2017 - 11:01:51 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp/urgent
head: 1c3b5f4491eff2539cf1162af54f395c2867448c
commit: ec1ce55647dc1a9c66c34a4854623d5438d2ed2c [6/7] smp/hotplug: Differentiate the AP completion between up and down
config: i386-randconfig-x015-09250401 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout ec1ce55647dc1a9c66c34a4854623d5438d2ed2c
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

kernel/cpu.c: In function 'wait_for_ap_thread':
>> kernel/cpu.c:97:41: error: 'struct cpuhp_cpu_state' has no member named 'done_up'
struct completion *done = bringup ? &st->done_up : &st->done_down;
^~
>> kernel/cpu.c:97:56: error: 'struct cpuhp_cpu_state' has no member named 'done_down'
struct completion *done = bringup ? &st->done_up : &st->done_down;
^~
kernel/cpu.c: In function 'complete_ap_thread':
kernel/cpu.c:103:41: error: 'struct cpuhp_cpu_state' has no member named 'done_up'
struct completion *done = bringup ? &st->done_up : &st->done_down;
^~
kernel/cpu.c:103:56: error: 'struct cpuhp_cpu_state' has no member named 'done_down'
struct completion *done = bringup ? &st->done_up : &st->done_down;
^~
At top level:
kernel/cpu.c:150:13: warning: 'cpuhp_is_atomic_state' defined but not used [-Wunused-function]
static bool cpuhp_is_atomic_state(enum cpuhp_state state)
^~~~~~~~~~~~~~~~~~~~~

vim +97 kernel/cpu.c

94
95 static inline void wait_for_ap_thread(struct cpuhp_cpu_state *st, bool bringup)
96 {
> 97 struct completion *done = bringup ? &st->done_up : &st->done_down;
98 wait_for_completion(done);
99 }
100

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip