Skip to content

Commit

Permalink
mm, slub: mark resiliency_test as init text
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Aug 7, 2014
1 parent 5240ab4 commit c07b818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c07b818

Please sign in to comment.