diff options
author | John Crispin <blogic@openwrt.org> | 2014-01-19 17:27:22 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-01-19 17:27:22 +0000 |
commit | 56e5be943d5fa65a23507f02a2ffdb6b5baa37f6 (patch) | |
tree | d7c9f7aa98c3d566d8c20dec9dc1ce25deeb836c /target/linux/ramips/patches-3.10/0509-MIPS-Kconfig-CMP-support-needs-to-select-SMP-as-well.patch | |
parent | cbd4880e3ce3dc60748e9a57b01c51f1d1221a21 (diff) | |
download | master-187ad058-56e5be943d5fa65a23507f02a2ffdb6b5baa37f6.tar.gz master-187ad058-56e5be943d5fa65a23507f02a2ffdb6b5baa37f6.tar.bz2 master-187ad058-56e5be943d5fa65a23507f02a2ffdb6b5baa37f6.zip |
ralink: backport various fixes from linux-mti
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39329 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/patches-3.10/0509-MIPS-Kconfig-CMP-support-needs-to-select-SMP-as-well.patch')
-rw-r--r-- | target/linux/ramips/patches-3.10/0509-MIPS-Kconfig-CMP-support-needs-to-select-SMP-as-well.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-3.10/0509-MIPS-Kconfig-CMP-support-needs-to-select-SMP-as-well.patch b/target/linux/ramips/patches-3.10/0509-MIPS-Kconfig-CMP-support-needs-to-select-SMP-as-well.patch new file mode 100644 index 0000000000..36295e2003 --- /dev/null +++ b/target/linux/ramips/patches-3.10/0509-MIPS-Kconfig-CMP-support-needs-to-select-SMP-as-well.patch @@ -0,0 +1,57 @@ +From 184edf882ebb7885b49fa231a503205da94e78f0 Mon Sep 17 00:00:00 2001 +From: Markos Chandras <markos.chandras@imgtec.com> +Date: Wed, 2 Oct 2013 12:40:26 -0500 +Subject: [PATCH 065/105] MIPS: Kconfig: CMP support needs to select SMP as + well + +The CMP code is only designed to work with SMP configurations. +Fixes multiple build problems on certain randconfigs: + +In file included from arch/mips/kernel/smp-cmp.c:34:0: +arch/mips/include/asm/smp.h:28:0: +error: "raw_smp_processor_id" redefined [-Werror] + +In file included from include/linux/sched.h:30:0, +from arch/mips/kernel/smp-cmp.c:22: +include/linux/smp.h:135:0: note: this is the location of the +previous definition + +In file included from arch/mips/kernel/smp-cmp.c:34:0: +arch/mips/include/asm/smp.h:57:20: +error: redefinition of 'smp_send_reschedule' + +In file included from include/linux/sched.h:30:0, +from arch/mips/kernel/smp-cmp.c:22: +include/linux/smp.h:179:20: note: previous +definition of 'smp_send_reschedule' was here + +In file included from arch/mips/kernel/smp-cmp.c:34:0: +arch/mips/include/asm/smp.h: In function 'smp_send_reschedule': +arch/mips/include/asm/smp.h:61:8: +error: dereferencing pointer to incomplete type +[...] + +Signed-off-by: Markos Chandras <markos.chandras@imgtec.com> +Cc: linux-mips@linux-mips.org +Cc: Markos Chandras <markos.chandras@imgtec.com> +Patchwork: https://patchwork.linux-mips.org/patch/5812/ +Signed-off-by: Ralf Baechle <ralf@linux-mips.org> +--- + arch/mips/Kconfig | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig +index e82c066..b537fb1 100644 +--- a/arch/mips/Kconfig ++++ b/arch/mips/Kconfig +@@ -2010,6 +2010,7 @@ config MIPS_VPE_APSP_API + config MIPS_CMP + bool "MIPS CMP framework support" + depends on SYS_SUPPORTS_MIPS_CMP ++ select SMP + select SYNC_R4K + select SYS_SUPPORTS_SMP + select SYS_SUPPORTS_SCHED_SMT if SMP +-- +1.7.10.4 + |