--- /dev/null
+From 25c87eae1725ed77a8b44d782a86abdc279b4ede Mon Sep 17 00:00:00 2001
+From: Markos Chandras <markos.chandras@imgtec.com>
+Date: Tue, 11 Jun 2013 08:49:50 +0000
+Subject: lib/Kconfig.debug: Restrict FRAME_POINTER for MIPS
+
+From: Markos Chandras <markos.chandras@imgtec.com>
+
+commit 25c87eae1725ed77a8b44d782a86abdc279b4ede upstream.
+
+FAULT_INJECTION_STACKTRACE_FILTER selects FRAME_POINTER but
+that symbol is not available for MIPS.
+
+Fixes the following problem on a randconfig:
+warning: (LOCKDEP && FAULT_INJECTION_STACKTRACE_FILTER && LATENCYTOP &&
+ KMEMCHECK) selects FRAME_POINTER which has unmet direct dependencies
+(DEBUG_KERNEL && (CRIS || M68K || FRV || UML || AVR32 || SUPERH || BLACKFIN ||
+MN10300 || METAG) || ARCH_WANT_FRAME_POINTERS)
+
+Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
+Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
+Cc: linux-mips@linux-mips.org
+Patchwork: https://patchwork.linux-mips.org/patch/5441/
+Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ lib/Kconfig.debug | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/lib/Kconfig.debug
++++ b/lib/Kconfig.debug
+@@ -1272,7 +1272,7 @@ config FAULT_INJECTION_STACKTRACE_FILTER
+ depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT
+ depends on !X86_64
+ select STACKTRACE
+- select FRAME_POINTER if !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND
++ select FRAME_POINTER if !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM_UNWIND
+ help
+ Provide stacktrace filter for fault-injection capabilities
+
scsi-mpt3sas-infinite-loops-can-occur-if-mpi2_iocstatus_config_invalid_page-is-not-returned.patch
scsi-mpt3sas-fix-for-kernel-panic-when-driver-loads-with-hba-conected-to-non-lun-0-configured-expander.patch
scsi-megaraid_sas-fix-memory-leak-if-sgl-has-zero-length-entries.patch
+lib-kconfig.debug-restrict-frame_pointer-for-mips.patch