MIPS: Enable kmemleak for MIPS
authorMaxin John <maxin.john@gmail.com>
Mon, 28 Mar 2011 21:15:55 +0000 (00:15 +0300)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 19 May 2011 08:55:41 +0000 (09:55 +0100)
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>
arch/mips/kernel/vmlinux.lds.S
lib/Kconfig.debug

index e4b0b0bec039299746c41637b2d83a0f9ae693a2..cd2ca544454b1378cb1e831f0f445cc0a2abeea7 100644 (file)
@@ -68,6 +68,7 @@ SECTIONS
        RODATA
 
        /* writeable */
+       _sdata = .;                             /* Start of data section */
        .data : {       /* Data */
                . = . + DATAOFFSET;             /* for CONFIG_MAPPED_KERNEL */
 
index c768bcdda1b700331a991cad681c5c2d6862c419..f0aa00ba3facd8b29bcbffdfef5c102d129145a2 100644 (file)
@@ -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