aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxin John <maxin.john@gmail.com>2011-03-28 17:15:55 -0400
committerRalf Baechle <ralf@linux-mips.org>2011-05-19 04:55:41 -0400
commitc0a5afb9bcf6b5aa5685e4fcf1282cad5fab3d91 (patch)
treeb8dbf6e0ec776690ff039e0c5999d2ce15963db1
parent9b130f8004e51c65b20b0f0e17cdee073a719047 (diff)
MIPS: Enable kmemleak for MIPS
Signed-off-by: Maxin B. John <maxin.john@gmail.com> To: Catalin Marinas <catalin.marinas@arm.com> Cc: Daniel Baluta <dbaluta@ixiacom.com> Cc: naveen yadav <yad.naveen@gmail.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org Patchwork: https://patchwork.linux-mips.org/patch/2244/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/kernel/vmlinux.lds.S1
-rw-r--r--lib/Kconfig.debug2
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S
index e4b0b0bec039..cd2ca544454b 100644
--- a/arch/mips/kernel/vmlinux.lds.S
+++ b/arch/mips/kernel/vmlinux.lds.S
@@ -68,6 +68,7 @@ SECTIONS
68 RODATA 68 RODATA
69 69
70 /* writeable */ 70 /* writeable */
71 _sdata = .; /* Start of data section */
71 .data : { /* Data */ 72 .data : { /* Data */
72 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */ 73 . = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
73 74
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index c768bcdda1b7..f0aa00ba3fac 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -398,7 +398,7 @@ config SLUB_STATS
398config DEBUG_KMEMLEAK 398config DEBUG_KMEMLEAK
399 bool "Kernel memory leak detector" 399 bool "Kernel memory leak detector"
400 depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \ 400 depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \
401 (X86 || ARM || PPC || S390 || SPARC64 || SUPERH || MICROBLAZE || TILE) 401 (X86 || ARM || PPC || MIPS || S390 || SPARC64 || SUPERH || MICROBLAZE || TILE)
402 402
403 select DEBUG_FS if SYSFS 403 select DEBUG_FS if SYSFS
404 select STACKTRACE if STACKTRACE_SUPPORT 404 select STACKTRACE if STACKTRACE_SUPPORT