[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 4 Apr 2011 15:06:44 -0700
From: Randy Dunlap <rdunlap@...otime.net>
To: lkml <linux-kernel@...r.kernel.org>,
Daniel Baluta <dbaluta@...acom.com>
Cc: torvalds <torvalds@...ux-foundation.org>,
Pekka Enberg <penberg@...nel.org>,
Catalin Marinas <catalin.marinas@....com>
Subject: [PATCH 6/8] kemleak-test: build as module only
From: Daniel Baluta <dbaluta@...acom.com>
mm/kmemleak-test.c is used to provide an example of how kmemleak
tool works.
Memory is leaked at module unload-time, so building the test
in kernel (Y) makes the leaks impossible and the test useless.
Qualify DEBUG_KMEMLEAK_TEST config symbol with "depends on m",
to restrict module-only building.
Signed-off-by: Daniel Baluta <dbaluta@...acom.com>
Acked-by: Pekka Enberg <penberg@...nel.org>
Acked-by: Catalin Marinas <catalin.marinas@....com>
Signed-off-by: Randy Dunlap <randy.dunlap@...cle.com>
---
lib/Kconfig.debug | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
--- linux-2.6.38-git18.orig/lib/Kconfig.debug
+++ linux-2.6.38-git18/lib/Kconfig.debug
@@ -434,11 +434,9 @@ config DEBUG_KMEMLEAK_EARLY_LOG_SIZE
config DEBUG_KMEMLEAK_TEST
tristate "Simple test for the kernel memory leak detector"
- depends on DEBUG_KMEMLEAK
+ depends on DEBUG_KMEMLEAK && m
help
- Say Y or M here to build a test for the kernel memory leak
- detector. This option enables a module that explicitly leaks
- memory.
+ This option enables a module that explicitly leaks memory.
If unsure, say N.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists