aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxin John <[email protected]>2011-03-29 00:15:55 +0300
committerRalf Baechle <[email protected]>2011-05-19 09:55:41 +0100
commitc0a5afb9bcf6b5aa5685e4fcf1282cad5fab3d91 (patch)
treeb8dbf6e0ec776690ff039e0c5999d2ce15963db1
parent9b130f8004e51c65b20b0f0e17cdee073a719047 (diff)
MIPS: Enable kmemleak for MIPS
Signed-off-by: Maxin B. John <[email protected]> To: Catalin Marinas <[email protected]> Cc: Daniel Baluta <[email protected]> Cc: naveen yadav <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/2244/ Signed-off-by: Ralf Baechle <[email protected]>
-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
RODATA
/* writeable */
+ _sdata = .; /* Start of data section */
.data : { /* Data */
. = . + DATAOFFSET; /* for CONFIG_MAPPED_KERNEL */
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
config DEBUG_KMEMLEAK
bool "Kernel memory leak detector"
depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \
- (X86 || ARM || PPC || S390 || SPARC64 || SUPERH || MICROBLAZE || TILE)
+ (X86 || ARM || PPC || MIPS || S390 || SPARC64 || SUPERH || MICROBLAZE || TILE)
select DEBUG_FS if SYSFS
select STACKTRACE if STACKTRACE_SUPPORT