aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMarkos Chandras <markos.chandras@imgtec.com>2014-07-22 04:29:34 -0400
committerRalf Baechle <ralf@linux-mips.org>2014-08-25 20:18:59 -0400
commitb10b43ba697c6b571a24b626eaab1d6d79acf14c (patch)
tree538f56eb018555066bec05479ce3c4a2b6bf1496 /arch
parent29593fd5a8149462ed6fad0d522234facdaee6c8 (diff)
MIPS: Kconfig: Select SMP symbols for CMP
CMP is an SMP implementation, and as a result of which, it needs to select the SYS_SUPPORTS_SMP and SMP symbols. This fixes the following build problem when CMP is enabled but SMP is not. In file included from arch/mips/kernel/smp-cmp.c:34:0: ./arch/mips/include/asm/smp.h:26:0: error: "raw_smp_processor_id" redefined [-Werror] #define raw_smp_processor_id() (current_thread_info()->cpu) [...] In file included from arch/mips/kernel/smp-cmp.c:34:0: ./arch/mips/include/asm/smp.h:59:20: error: redefinition of 'smp_send_reschedule' [...] ./arch/mips/include/asm/smp.h: In function 'smp_send_reschedule': ./arch/mips/include/asm/smp.h:63:8: error: dereferencing pointer to incomplete type Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7436/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/Kconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 0c57c4b43fd1..376befad6856 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -2030,7 +2030,9 @@ config MIPS_CMP
2030 bool "MIPS CMP framework support (DEPRECATED)" 2030 bool "MIPS CMP framework support (DEPRECATED)"
2031 depends on SYS_SUPPORTS_MIPS_CMP 2031 depends on SYS_SUPPORTS_MIPS_CMP
2032 select MIPS_GIC_IPI 2032 select MIPS_GIC_IPI
2033 select SMP
2033 select SYNC_R4K 2034 select SYNC_R4K
2035 select SYS_SUPPORTS_SMP
2034 select WEAK_ORDERING 2036 select WEAK_ORDERING
2035 default n 2037 default n
2036 help 2038 help