Skip to content

Commit c07b818

Browse files
rientjestorvalds
authored andcommitted
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>
1 parent 5240ab4 commit c07b818

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎mm/slub.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4187,7 +4187,7 @@ static int list_locations(struct kmem_cache *s, char *buf,
41874187
#endif
41884188

41894189
#ifdef SLUB_RESILIENCY_TEST
4190-
static void resiliency_test(void)
4190+
static void __init resiliency_test(void)
41914191
{
41924192
u8 *p;
41934193

0 commit comments

Comments
 (0)