From: Shreyas B. Prabhu Date: Fri, 6 Jun 2014 10:21:05 +0000 (+0530) Subject: powerpc/powernv: Include asm/smp.h to fix UP build failure X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b2a80878693256ab97e1e3667e24b3ecdc951de1;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git powerpc/powernv: Include asm/smp.h to fix UP build failure 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 --- 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"