From b2a80878693256ab97e1e3667e24b3ecdc951de1 Mon Sep 17 00:00:00 2001 From: "Shreyas B. Prabhu" Date: Fri, 6 Jun 2014 15:51:05 +0530 Subject: [PATCH] powerpc/powernv: Include asm/smp.h to fix UP build failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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 --- Reading git-format-patch failed