Fix x86_64 build with CONFIG_HOTPLUG_CPU=n
PATCH 1/1 Fix x86_64 build with CONFIG_HOTPLUG_CPU=n
In arch/x86_64, kernel/setup.c calls setup_additional_cpus() if CONFIG_SMP is defined. However, kernel/smpboot.c only defines it if CONFIG_HOTPLUG_CPU is defined, so a build with SMP but not HOTPLUG_CPU will fail. Fix this by testing HOTPLUG_CPU in kernel/setup.c as well.
Signed-off-by Roland Dreier <[email protected]>
arch/x86_64/kernel/setup.c +1 -1
@@ -424,7 +424,7 @@ static __init void parse_cmdline_early ( elfcorehdr_addr =memparse (from+11 , &from);#endif -#ifdef CONFIG_SMP +#ifdef CONFIG_HOTPLUG_CPU else if (!memcmp(from, "additional_cpus=", 16))setup_additional_cpus (from+16 );#endif