Without SMP support sys-kernel/openvz-sources-2.6.27* fails to compile with following error: arch/x86/kernel/traps_32.c:814: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'nmi_ipi_callback' arch/x86/kernel/traps_32.c: In function 'do_nmi': arch/x86/kernel/traps_32.c:872: error: implicit declaration of function 'nmi_ipi_callback' arch/x86/kernel/traps_32.c: At top level: arch/x86/kernel/traps_32.c:879: error: expected ')' before 'callback' arch/x86/kernel/traps_32.c: In function 'unset_nmi_ipi_callback': arch/x86/kernel/traps_32.c:886: error: 'nmi_ipi_callback' undeclared (first use in this function) arch/x86/kernel/traps_32.c:886: error: (Each undeclared identifier is reported only once arch/x86/kernel/traps_32.c:886: error: for each function it appears in.) make[1]: *** [arch/x86/kernel/traps_32.o] Error 1 make: *** [arch/x86/kernel] Error 2 Link to OpenVZ bug: http://bugzilla.openvz.org/show_bug.cgi?id=1313 Reproducible: Always Steps to Reproduce:
Created attachment 210528 [details, diff] patch to fix compilation error Patch source: http://www.gentoo.ru/node/12151
Thanks for the report, and thanks for posting the fix! Assigning to openvz maintainers.
Please, attach .config.
Created attachment 211658 [details] kernel config
You need to enable CONFIG_X86_UP_APIC to workaround this problem. It's good idea to have local apic enabled in any case so ... no need to use this patch. At least this could wait longer until correct solution will be found. Thank you for report any way.
Max, could you try to reproduce this problem with the most recent kernel version? Upstream states that this problem is fixed there.
I can not reproduce this problem on 2.6.27-openvz-kiprensky.1 with or without CONFIG_X86_UP_APIC. I didn't tried to boot it but otherwise it seems ok. Issue can be probably closed now, thanks!
Thank you. Fixed then.