From: David Rientjes Date: Wed, 6 Aug 2014 23:04:16 +0000 (-0700) Subject: mm, slub: mark resiliency_test as init text X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c07b8183cbb86d34007e5a3935e0ec89f5bb83c6;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Acked-by: Christoph Lameter Cc: Pekka Enberg Cc: Joonsoo Kim Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slub.c b/mm/slub.c index 3918cd62a4b2..2d61503efb92 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -4187,7 +4187,7 @@ static int list_locations(struct kmem_cache *s, char *buf, #endif #ifdef SLUB_RESILIENCY_TEST -static void resiliency_test(void) +static void __init resiliency_test(void) { u8 *p;