Re: [PATCH] kmemleak: build kmemleak-test.c as a module-only

From: Catalin Marinas
Date: Wed Mar 23 2011 - 07:24:45 EST


On Wed, 2011-03-16 at 18:16 +0000, Daniel Baluta wrote:
> 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@xxxxxxxxxxx>

Sorry for the delay.

Acked-by: Catalin Marinas <catalin.marinas@xxxxxxx>


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/