From: Alexey Dobriyan Date: Sun, 2 Nov 2008 07:26:51 +0000 (+0000) Subject: powerpc/ps3: Fix compile error in ps3-lpm.c X-Git-Tag: v2.6.28-rc4~29^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=fce4d58353e449a1ac637fc8d2b994e0fcc55312;p=linux-2.6-omap-h63xx.git powerpc/ps3: Fix compile error in ps3-lpm.c Compiling with CONFIG_SMP = n and CONFIG_PS3_LPM != n gives this error: drivers/ps3/ps3-lpm.c:838: error: implicit declaration of function 'get_hard_smp_processor_id' This fixes it. We have to include rather than because the UP definition of get_hard_smp_processor_id() is in , and only includes if CONFIG_SMP = y. Signed-off-by: Alexey Dobriyan Acked-by: Geoff Levand Signed-off-by: Paul Mackerras --- diff --git a/drivers/ps3/ps3-lpm.c b/drivers/ps3/ps3-lpm.c index 85edf945ab8..204158cf7a5 100644 --- a/drivers/ps3/ps3-lpm.c +++ b/drivers/ps3/ps3-lpm.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include