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-Tag: omap-for-v3.16/fixes-against-rc1~30^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2a80878693256ab97e1e3667e24b3ecdc951de1;p=pandora-kernel.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 --- Reading git-diff-tree failed