Re: [PATCH] x86/hyperv: Handle unknown NMIs on one CPU when unknown_nmi_panic

From: kbuild test robot
Date: Thu Dec 01 2016 - 06:37:31 EST


Hi Vitaly,

[auto build test ERROR on tip/x86/core]
[also build test ERROR on v4.9-rc7 next-20161130]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url: https://github.com/0day-ci/linux/commits/Vitaly-Kuznetsov/x86-hyperv-Handle-unknown-NMIs-on-one-CPU-when-unknown_nmi_panic/20161201-171219
config: i386-randconfig-x014-201648 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

arch/x86/kernel/cpu/mshyperv.c: In function 'hv_nmi_unknown':
>> arch/x86/kernel/cpu/mshyperv.c:171:7: error: 'unknown_nmi_panic' undeclared (first use in this function)
if (!unknown_nmi_panic)
^~~~~~~~~~~~~~~~~
arch/x86/kernel/cpu/mshyperv.c:171:7: note: each undeclared identifier is reported only once for each function it appears in

vim +/unknown_nmi_panic +171 arch/x86/kernel/cpu/mshyperv.c

165 * unknown NMI on the first CPU which gets it.
166 */
167 static int hv_nmi_unknown(unsigned int val, struct pt_regs *regs)
168 {
169 static atomic_t nmi_cpu = ATOMIC_INIT(-1);
170
> 171 if (!unknown_nmi_panic)
172 return NMI_DONE;
173
174 if (atomic_cmpxchg(&nmi_cpu, -1, raw_smp_processor_id()) != -1)

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

Attachment: .config.gz
Description: application/gzip