Mark cache_names __initdata
PATCH 1/1 Mark cache_names __initdata
We don't need to keep the pointer array around after the caches are initialized. This doesn't affect the actual strings.
--
Brian Gerst
mm/slab.c +4 -2
@@ -477,10 +477,12 @@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 <linux/kmalloc_sizes.h> { 0, }