Kconfig: Move CONFIG_DEBUG_KMEMLEAK_TEST to samples/Kconfig
PATCH 1/1 Kconfig: Move CONFIG_DEBUG_KMEMLEAK_TEST to samples/Kconfig
From: Chen Jun <[email protected]>
commit 1abbef4f51724fb11f09adf0e75275f7cb422a8a ("mm,kmemleak-test.c: move kmemleak-test.c to samples dir") make CONFIG_DEBUG_KMEMLEAK_TEST depend on CONFIG_SAMPLES implicitly. And the dependency cannot be guaranteed by Kconfig.
move the definition of CONFIG_DEBUG_KMEMLEAK_TEST from lib/Kconfig.debug to samples/Kconfig.
--- lib/Kconfig.debug | 8 -------- samples/Kconfig | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-)
lib/Kconfig.debug +0 -8
@@ -678,14 +678,6 @@ config DEBUG_KMEMLEAK_MEM_POOL_SIZE fully initialised, this memory pool acts as an emergency one if slab allocations fail. -config DEBUG_KMEMLEAK_TEST - tristate "Simple test for the kernel memory leak detector" - depends on DEBUG_KMEMLEAK && m - help - This option enables a module that explicitly leaks memory. - - If unsure, say N. - config DEBUG_KMEMLEAK_DEFAULT_OFF bool "Default kmemleak to off" depends on DEBUG_KMEMLEAK
samples/Kconfig +8 -0
@@ -216,4 +216,12 @@ config SAMPLE_WATCH_QUEUE Build example userspace program to use the new mount_notify(), sb_notify() syscalls and the KEYCTL_WATCH_KEY keyctl() function. +config DEBUG_KMEMLEAK_TEST + tristate "Simple test for the kernel memory leak detector" + depends on DEBUG_KMEMLEAK && m + help + This option enables a module that explicitly leaks memory. + + If unsure, say N. + endif # SAMPLES
Signature · 1 line
2.7.4
Quoted 11 lines · Chen Jun
From: Chen Jun <[email protected]>
commit
1abbef4f51724fb11f09adf0e75275f7cb422a8a("mm,kmemleak-test.c: movekmemleak-test.cto samples dir") makeCONFIG_DEBUG_KMEMLEAK_TESTdepend onCONFIG_SAMPLESimplicitly. And the dependency cannot be guaranteed byKconfig.move the definition of
CONFIG_DEBUG_KMEMLEAK_TESTfromlib/Kconfig.debugtosamples/Kconfig.Signed-off-by Chen Jun <[email protected]>
PATCH RESEND 1/1 Kconfig: Move CONFIG_DEBUG_KMEMLEAK_TEST to samples/Kconfig
In reply to Chen JunFrom: Chen Jun <[email protected]>
commit 1abbef4f51724fb11f09adf0e75275f7cb422a8a ("mm,kmemleak-test.c: move kmemleak-test.c to samples dir") make CONFIG_DEBUG_KMEMLEAK_TEST depend on CONFIG_SAMPLES implicitly. And the dependency cannot be guaranteed by Kconfig.
move the definition of CONFIG_DEBUG_KMEMLEAK_TEST from lib/Kconfig.debug to samples/Kconfig.
---
lib/Kconfig.debug | 8 -------- samples/Kconfig | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-)
lib/Kconfig.debug +0 -8
@@ -678,14 +678,6 @@ config DEBUG_KMEMLEAK_MEM_POOL_SIZE fully initialised, this memory pool acts as an emergency one if slab allocations fail. -config DEBUG_KMEMLEAK_TEST - tristate "Simple test for the kernel memory leak detector" - depends on DEBUG_KMEMLEAK && m - help - This option enables a module that explicitly leaks memory. - - If unsure, say N. - config DEBUG_KMEMLEAK_DEFAULT_OFF bool "Default kmemleak to off" depends on DEBUG_KMEMLEAK
samples/Kconfig +8 -0
@@ -216,4 +216,12 @@ config SAMPLE_WATCH_QUEUE Build example userspace program to use the new mount_notify(), sb_notify() syscalls and the KEYCTL_WATCH_KEY keyctl() function. +config DEBUG_KMEMLEAK_TEST + tristate "Simple test for the kernel memory leak detector" + depends on DEBUG_KMEMLEAK && m + help + This option enables a module that explicitly leaks memory. + + If unsure, say N. + endif # SAMPLES
Signature · 1 line
2.7.4
Quoted 7 lines · chenjun (AM)
From: Chen Jun <[email protected]>
commit
1abbef4f51724fb11f09adf0e75275f7cb422a8a("mm,kmemleak-test.c: movekmemleak-test.cto samples dir") makeCONFIG_DEBUG_KMEMLEAK_TESTdepend onCONFIG_SAMPLESimplicitly. And the dependency cannot be guaranteed byKconfig.
Quoted 5 lines
move the definition of
CONFIG_DEBUG_KMEMLEAK_TESTfromlib/Kconfig.debugtosamples/Kconfig.Signed-off-by Chen Jun <[email protected]>Acked-by Catalin Marinas <[email protected]>
Cc'ing Andrew, I don't think he's seen the patch.
Quoted 42 lines
lib/Kconfig.debug | 8 -------- samples/Kconfig | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-)lib/Kconfig.debug +0
-8@@ -678,14 +678,6 @@ config DEBUG_KMEMLEAK_MEM_POOL_SIZE fully initialised, this memory pool acts as an emergency one if slab allocations fail. -config DEBUG_KMEMLEAK_TEST - tristate "Simple test for the kernel memory leak detector" - depends on DEBUG_KMEMLEAK && m - help - This option enables a module that explicitly leaks memory. - - If unsure, say N. - config DEBUG_KMEMLEAK_DEFAULT_OFF bool "Default kmemleak to off" depends on DEBUG_KMEMLEAKsamples/Kconfig +8
-0@@ -216,4 +216,12 @@ config SAMPLE_WATCH_QUEUE Build example userspace program to use the new mount_notify(), sb_notify() syscalls and the KEYCTL_WATCH_KEY keyctl() function. +config DEBUG_KMEMLEAK_TEST + tristate "Simple test for the kernel memory leak detector" + depends on DEBUG_KMEMLEAK && m + help + This option enables a module that explicitly leaks memory. + + If unsure, say N. + endif # SAMPLESSignature · 1 line
2.7.4