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 <[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]>
  • Loading branch information
rientjes authored and 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.