[tip:smp/hotplug 5/20] arch/x86/kernel/msr.c:220:27: error: 'CPUHP_X86_MSR_PREPARE' undeclared
From: kbuild test robot
Date: Mon Nov 21 2016 - 11:09:47 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git smp/hotplug
head: 73f4f6f5ab9a069037b8e98663193accaf18bd5c
commit: 216a5d1b866538a021af00bfb7c5dcd1da8ff884 [5/20] x86/msr: Convert to hotplug state machine
config: x86_64-randconfig-x011-201647 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 216a5d1b866538a021af00bfb7c5dcd1da8ff884
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
arch/x86/kernel/msr.c: In function 'msr_init':
>> arch/x86/kernel/msr.c:220:27: error: 'CPUHP_X86_MSR_PREPARE' undeclared (first use in this function)
err = cpuhp_setup_state(CPUHP_X86_MSR_PREPARE, "x86/msr:online",
^~~~~~~~~~~~~~~~~~~~~
arch/x86/kernel/msr.c:220:27: note: each undeclared identifier is reported only once for each function it appears in
>> arch/x86/kernel/msr.c:211:3: error: label 'out' used but not defined
goto out;
^~~~
vim +/CPUHP_X86_MSR_PREPARE +220 arch/x86/kernel/msr.c
205 {
206 int err;
207
208 if (__register_chrdev(MSR_MAJOR, 0, NR_CPUS, "cpu/msr", &msr_fops)) {
209 pr_err("unable to get major %d for msr\n", MSR_MAJOR);
210 err = -EBUSY;
> 211 goto out;
212 }
213 msr_class = class_create(THIS_MODULE, "msr");
214 if (IS_ERR(msr_class)) {
215 err = PTR_ERR(msr_class);
216 goto out_chrdev;
217 }
218 msr_class->devnode = msr_devnode;
219
> 220 err = cpuhp_setup_state(CPUHP_X86_MSR_PREPARE, "x86/msr:online",
221 msr_device_create, msr_device_destroy);
222 if (err < 0)
223 goto 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