summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mm/slab.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 8830f4ed44f0..e788a0e3a09e 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -387,14 +387,15 @@ static struct cache_sizes {
};
/* Must match cache_sizes above. Out of line to keep cache footprint low. */
-static struct {
- char *name;
+static struct {
+ char *name;
char *name_dma;
-} cache_names[] = {
+} cache_names[] = {
#define CACHE(x) { .name = "size-" #x, .name_dma = "size-" #x "(DMA)" },
#include <linux/kmalloc_sizes.h>
+ { 0, }
#undef CACHE
-};
+};
struct arraycache_init initarray_cache __initdata = { { 0, BOOT_CPUCACHE_ENTRIES, 1, 0} };
struct arraycache_init initarray_generic __initdata = { { 0, BOOT_CPUCACHE_ENTRIES, 1, 0} };