[PATCH] ARM: kexec: validate CPU hotplug support

Russell King - ARM Linux linux at arm.linux.org.uk
Thu Aug 1 09:41:19 EDT 2013


On Thu, Jul 11, 2013 at 04:48:51PM -0600, Stephen Warren wrote:
> +int platform_can_cpu_hotplug(void)
> +{
> +	if (!IS_ENABLED(CONFIG_HOTPLUG_CPU) || !smp_ops.cpu_kill)
> +		return 0;

This is an inappropriate usage of IS_ENABLED().  When hotplug CPU is
disabled, there is no cpu_kill member in smp_ops, so this leads to
build failure.

Dropping your patch.



More information about the linux-arm-kernel mailing list