linux/arch/arm/mach-hisi
Arnd Bergmann 4c9e0f76a5 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: 905cdf9dda ("ARM: hisi/hip04: remove the MCPM overhead")

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Nicolas Pitre <nico@xxxxxxxxxx>
Acked-by: Wei Xu <xuwei5@hisilicon.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2015-05-28 00:22:49 +01:00
..
core.h ARM: hisi: enable smp for HiP01 2015-01-21 14:33:39 -08:00
headsmp.S ARM: hisi: rename secondary_startup function 2015-01-21 14:33:01 -08:00
hisilicon.c ARM: make arrays containing machine compatible strings const 2015-02-19 09:44:17 +01:00
hotplug.c ARM: hisi: enable smp for HiP01 2015-01-21 14:33:39 -08:00
Kconfig ARM: hisi: enable HiP01 SoC 2015-01-21 14:31:06 -08:00
Makefile ARM: hisi: Fix platmcpm compilation when ARMv6 is selected 2014-09-24 10:30:39 -07:00
platmcpm.c ARM: 8370/1: hisi: fix hip04 build without HOTPLUG_CPU 2015-05-28 00:22:49 +01:00
platsmp.c ARM: hisi: enable smp for HiP01 2015-01-21 14:33:39 -08:00