]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Mark cache_names __initdata
authorAndrew Morton <akpm@osdl.org>
Tue, 1 Jun 2004 01:48:58 +0000 (18:48 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 1 Jun 2004 01:48:58 +0000 (18:48 -0700)
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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/slab.c

index 7ac848cee87318e4c65f547e074ac00cf7a98207..45c5c0549230d072e9c5b8cab7715b3355e30c38 100644 (file)
--- 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 <linux/kmalloc_sizes.h>
        { 0, }