summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2014-08-06 16:04:16 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2014-08-06 18:01:14 -0700
commitc07b8183cbb86d34007e5a3935e0ec89f5bb83c6 (patch)
treee3f26625f0a8d4d974f02de69eafd098e92952d3 /mm/slub.c
parent5240ab4076bd3815473f2f2991741acc698f8b58 (diff)
downloadop-kernel-dev-c07b8183cbb86d34007e5a3935e0ec89f5bb83c6.zip
op-kernel-dev-c07b8183cbb86d34007e5a3935e0ec89f5bb83c6.tar.gz
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>
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/slub.c b/mm/slub.c
index 3918cd6..2d61503 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;
OpenPOWER on IntegriCloud