[tip:smp/hotplug 4/20] arch/x86/kernel/cpuid.c:161:2: error: 'cpuhp_cpuid_state' undeclared

From: kbuild test robot
Date: Mon Nov 21 2016 - 11:01:45 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp/hotplug
head: 73f4f6f5ab9a069037b8e98663193accaf18bd5c
commit: 22fbf682c20b8c51a7fbe51d43bc9833b26c2cc4 [4/20] x86/cpuid: Move the hotplug callbacks to online
config: x86_64-randconfig-x011-201647 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 22fbf682c20b8c51a7fbe51d43bc9833b26c2cc4
# save the attached .config to linux build tree
make ARCH=x86_64

All errors (new ones prefixed by >>):

arch/x86/kernel/cpuid.c: In function 'cpuid_init':
>> arch/x86/kernel/cpuid.c:161:2: error: 'cpuhp_cpuid_state' undeclared (first use in this function)
cpuhp_cpuid_state = err;
^~~~~~~~~~~~~~~~~
arch/x86/kernel/cpuid.c:161:2: note: each undeclared identifier is reported only once for each function it appears in
arch/x86/kernel/cpuid.c: In function 'cpuid_exit':
arch/x86/kernel/cpuid.c:174:21: error: 'cpuhp_cpuid_state' undeclared (first use in this function)
cpuhp_remove_state(cpuhp_cpuid_state);
^~~~~~~~~~~~~~~~~
At top level:
arch/x86/kernel/cpuid.c:48:25: warning: 'cpuid_hp_state' defined but not used [-Wunused-variable]
static enum cpuhp_state cpuid_hp_state;
^~~~~~~~~~~~~~

vim +/cpuhp_cpuid_state +161 arch/x86/kernel/cpuid.c

155
156 err = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "x86/cpuid:online",
157 cpuid_device_create, cpuid_device_destroy);
158 if (err < 0)
159 goto out_class;
160
> 161 cpuhp_cpuid_state = err;
162 return 0;
163
164 out_class:

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

Attachment: .config.gz
Description: application/gzip