aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rientjes <[email protected]>2014-08-06 16:04:16 -0700
committerLinus Torvalds <[email protected]>2014-08-06 18:01:14 -0700
commitc07b8183cbb86d34007e5a3935e0ec89f5bb83c6 (patch)
treee3f26625f0a8d4d974f02de69eafd098e92952d3
parent5240ab4076bd3815473f2f2991741acc698f8b58 (diff)
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 <[email protected]> Acked-by: Christoph Lameter <[email protected]> Cc: Pekka Enberg <[email protected]> Cc: Joonsoo Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-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;