From b2a80878693256ab97e1e3667e24b3ecdc951de1 Mon Sep 17 00:00:00 2001 From: "Shreyas B. Prabhu" Date: Fri, 6 Jun 2014 15:51:05 +0530 Subject: powerpc/powernv: Include asm/smp.h to fix UP build failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Build throws following errors when CONFIG_SMP=n arch/powerpc/platforms/powernv/setup.c: In function ‘pnv_kexec_wait_secondaries_down’: arch/powerpc/platforms/powernv/setup.c:179:4: error: implicit declaration of function ‘get_hard_smp_processor_id’ rc = opal_query_cpu_status(get_hard_smp_processor_id(i), The usage of get_hard_smp_processor_id() needs the declaration from . The file setup.c includes , which in-turn includes . However, includes only on SMP configs and hence UP builds fail. Fix this by directly including in setup.c unconditionally. Reported-by: Geert Uytterhoeven Reviewed-by: Srivatsa S. Bhat Signed-off-by: Shreyas B. Prabhu Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/powernv/setup.c | 1 + 1 file changed, 1 insertion(+) (limited to 'arch') diff --git a/arch/powerpc/platforms/powernv/setup.c b/arch/powerpc/platforms/powernv/setup.c index 8c16a5f96728..678573c4ac49 100644 --- a/arch/powerpc/platforms/powernv/setup.c +++ b/arch/powerpc/platforms/powernv/setup.c @@ -35,6 +35,7 @@ #include #include #include +#include #include "powernv.h" -- cgit v1.2.3