From: Arnd Bergmann Date: Sat, 23 May 2015 08:31:54 +0000 (+0100) Subject: ARM: 8370/1: hisi: fix hip04 build without HOTPLUG_CPU X-Git-Tag: omap-for-v4.3/legacy-v2-signed~129^2~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c9e0f76a55a38757390d43c40b2c7c3564a855a;p=pandora-kernel.git ARM: 8370/1: hisi: fix hip04 build without HOTPLUG_CPU The hip04 smp implementation provides the hotplug operations (cpu_die and cpu_kill) unconditionally at the moment, which leads to a build error when HOTPLUG_CPU is disabled: mach-hisi/platmcpm.c:242:13: note: (near initialization for 'hip04_smp_ops') mach-hisi/platmcpm.c:242:2: error: unknown field 'cpu_die' specified in initializer mach-hisi/platmcpm.c:243:2: error: unknown field 'cpu_kill' specified in initializer This uses an #ifdef to remove the code from the build when that option is not set. Fixes: 905cdf9dda5d ("ARM: hisi/hip04: remove the MCPM overhead") Signed-off-by: Arnd Bergmann Acked-by: Nicolas Pitre Acked-by: Wei Xu Signed-off-by: Russell King --- Reading git-diff-tree failed