summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorDavid Rientjes2014-08-07 01:04:16 +0200
committerLinus Torvalds2014-08-07 03:01:14 +0200
commitc07b8183cbb86d34007e5a3935e0ec89f5bb83c6 (patch)
treee3f26625f0a8d4d974f02de69eafd098e92952d3 /mm/slub.c
parentmm: slab.h: wrap the whole file with guarding macro (diff)
downloadkernel-qcow2-linux-c07b8183cbb86d34007e5a3935e0ec89f5bb83c6.tar.gz
kernel-qcow2-linux-c07b8183cbb86d34007e5a3935e0ec89f5bb83c6.tar.xz
kernel-qcow2-linux-c07b8183cbb86d34007e5a3935e0ec89f5bb83c6.zip
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 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;