Skip to contentSkip to conversation

sparc64: Support kmemleak.

PATCH New David Miller 1 participant 1 message Apr 13, 2010

Subsystems (2)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/3 sparc64: Support kmemleak.

Only missing thing was an _sdata marker in vmlinux.lds.S

---
 arch/sparc/kernel/vmlinux.lds.S |    4 ++++
 lib/Kconfig.debug               |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)
arch/sparc/kernel/vmlinux.lds.S +4 -0
index c4f5758..0c1e678 100644
@@ -52,6 +52,10 @@ SECTIONS
 	_etext = .;
 
 	RO_DATA(PAGE_SIZE)
+
+	/* Start of data section */
+	_sdata = .;
+
 	.data1 : {
 		*(.data1)
 	}
lib/Kconfig.debug +1 -1
index 1fafb4b..6c2be60 100644
@@ -356,7 +356,7 @@ config SLUB_STATS
 config DEBUG_KMEMLEAK
 	bool "Kernel memory leak detector"
 	depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \
-		(X86 || ARM || PPC || S390 || SUPERH)
+		(X86 || ARM || PPC || S390 || SPARC64 || SUPERH)
 
 	select DEBUG_FS if SYSFS
 	select STACKTRACE if STACKTRACE_SUPPORT
Signature · 1 line
1.7.0.4