diff options
author | David Rientjes <rientjes@google.com> | 2014-08-06 19:04:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-06 21:01:14 -0400 |
commit | c07b8183cbb86d34007e5a3935e0ec89f5bb83c6 (patch) | |
tree | e3f26625f0a8d4d974f02de69eafd098e92952d3 /mm | |
parent | 5240ab4076bd3815473f2f2991741acc698f8b58 (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 <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')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4187,7 +4187,7 @@ static int list_locations(struct kmem_cache *s, char *buf, | |||
4187 | #endif | 4187 | #endif |
4188 | 4188 | ||
4189 | #ifdef SLUB_RESILIENCY_TEST | 4189 | #ifdef SLUB_RESILIENCY_TEST |
4190 | static void resiliency_test(void) | 4190 | static void __init resiliency_test(void) |
4191 | { | 4191 | { |
4192 | u8 *p; | 4192 | u8 *p; |
4193 | 4193 | ||