Commit df050b72 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Mark cache_names __initdata

From: Brian Gerst <bgerst@didntduck.org>

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: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9b91d73b
...@@ -477,10 +477,12 @@ struct cache_sizes malloc_sizes[] = { ...@@ -477,10 +477,12 @@ struct cache_sizes malloc_sizes[] = {
EXPORT_SYMBOL(malloc_sizes); EXPORT_SYMBOL(malloc_sizes);
/* Must match cache_sizes above. Out of line to keep cache footprint low. */ /* Must match cache_sizes above. Out of line to keep cache footprint low. */
static struct cache_names { struct cache_names {
char *name; char *name;
char *name_dma; char *name_dma;
} cache_names[] = { };
static struct cache_names __initdata cache_names[] = {
#define CACHE(x) { .name = "size-" #x, .name_dma = "size-" #x "(DMA)" }, #define CACHE(x) { .name = "size-" #x, .name_dma = "size-" #x "(DMA)" },
#include <linux/kmalloc_sizes.h> #include <linux/kmalloc_sizes.h>
{ 0, } { 0, }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment