mm, slub: mark resiliency_test as init text

resiliency_test() is only called for bootstrap, so it may be moved to
init.text and freed after boot.

Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: Christoph Lameter <cl@linux.com>
Cc: Pekka Enberg <penberg@kernel.org>
Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
David Rientjes 2014-08-06 16:04:16 -07:00 committed by Linus Torvalds
parent 5240ab4076
commit c07b8183cb
1 changed files with 1 additions and 1 deletions

View File

@ -4187,7 +4187,7 @@ static int list_locations(struct kmem_cache *s, char *buf,
#endif #endif
#ifdef SLUB_RESILIENCY_TEST #ifdef SLUB_RESILIENCY_TEST
static void resiliency_test(void) static void __init resiliency_test(void)
{ {
u8 *p; u8 *p;