[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1300299394-20844-1-git-send-email-dbaluta@ixiacom.com>
Date: Wed, 16 Mar 2011 20:16:34 +0200
From: Daniel Baluta <dbaluta@...acom.com>
To: paulmck@...ux.vnet.ibm.com
Cc: akpm@...ux-foundation.org, mingo@...e.hu, fweisbec@...il.com,
rdunlap@...otime.net, linux-kernel@...r.kernel.org,
catalin.marinas@....com, Daniel Baluta <dbaluta@...acom.com>
Subject: [PATCH] kmemleak: build kmemleak-test.c as a module-only
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>
---
lib/Kconfig.debug | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
index 689f311..6e9cacc 100644
--- a/lib/Kconfig.debug
+++ b/lib/Kconfig.debug
@@ -407,11 +407,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.
--
1.7.1
--
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