platform_can_secondary_boot() is only available for SMP, so guard the smp_init function with some ifdeffery to allow building without SMP. Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx> --- This is the easiest solution, but I wonder if it is the proper one? It might make sense to modify the Makefile so platsmp.o is in smp-y and not cpu-y? I may be missing here something, though. I needed !SMP for debugging purposes, obviously. arch/arm/mach-shmobile/platsmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-shmobile/platsmp.c b/arch/arm/mach-shmobile/platsmp.c index 02e21bceb0856b..d286e3ff6f6a5a 100644 --- a/arch/arm/mach-shmobile/platsmp.c +++ b/arch/arm/mach-shmobile/platsmp.c @@ -37,6 +37,7 @@ bool shmobile_smp_cpu_can_disable(unsigned int cpu) } #endif +#ifdef CONFIG_SMP bool __init shmobile_smp_init_fallback_ops(void) { /* fallback on PSCI/smp_ops if no other DT based method is detected */ @@ -45,3 +46,4 @@ bool __init shmobile_smp_init_fallback_ops(void) return platform_can_secondary_boot() ? true : false; } +#endif -- 2.8.1