From df050b72972b171eef7fce7d81b700c9fec74e3d Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 31 May 2004 18:48:58 -0700 Subject: [PATCH] [PATCH] Mark cache_names __initdata From: Brian Gerst We don't need to keep the pointer array around after the caches are initialized. This doesn't affect the actual strings. Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/slab.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mm/slab.c b/mm/slab.c index 7ac848cee8731..45c5c0549230d 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -477,10 +477,12 @@ struct cache_sizes malloc_sizes[] = { EXPORT_SYMBOL(malloc_sizes); /* Must match cache_sizes above. Out of line to keep cache footprint low. */ -static struct cache_names { +struct cache_names { char *name; char *name_dma; -} cache_names[] = { +}; + +static struct cache_names __initdata cache_names[] = { #define CACHE(x) { .name = "size-" #x, .name_dma = "size-" #x "(DMA)" }, #include { 0, } -- 2.53.0