From: Paul Burton Date: Wed, 9 Jul 2014 11:48:18 +0000 (+0100) Subject: MIPS: pm-cps: Prevent use of mips_cps_* without CPS SMP X-Git-Tag: cleanup-for-v3.18~94^2~78 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=064231e548d0ef90453081f424ced7b3ffffffe9;p=pandora-kernel.git MIPS: pm-cps: Prevent use of mips_cps_* without CPS SMP These symbols will not be defined when CONFIG_MIPS_CPS=n, but although the CPS_PM_POWER_GATED state will never be used in that case the compiler doesn't have enough information to figure that out. Add checks which evaluate to a constant false for CONFIG_MIPS_CPS=n cases in order to help the compiler out & eliminate the symbol references. Signed-off-by: Paul Burton Reviewed-by: Markos Chandras Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7278/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed