diff options
-rw-r--r-- | arch/alpha/mm/init.c | 2 | ||||
-rw-r--r-- | arch/frv/mm/init.c | 2 | ||||
-rw-r--r-- | arch/h8300/mm/init.c | 2 | ||||
-rw-r--r-- | arch/i386/kernel/setup.c | 2 | ||||
-rw-r--r-- | arch/i386/mm/discontig.c | 2 | ||||
-rw-r--r-- | arch/m32r/mm/init.c | 2 | ||||
-rw-r--r-- | arch/m68knommu/mm/init.c | 2 | ||||
-rw-r--r-- | arch/mips/mm/init.c | 4 | ||||
-rw-r--r-- | arch/mips/sgi-ip27/ip27-memory.c | 2 | ||||
-rw-r--r-- | arch/parisc/mm/init.c | 2 | ||||
-rw-r--r-- | arch/sh64/mm/init.c | 2 |
11 files changed, 12 insertions, 12 deletions
diff --git a/arch/alpha/mm/init.c b/arch/alpha/mm/init.c index 917dad1b74c8..550f4907d613 100644 --- a/arch/alpha/mm/init.c +++ b/arch/alpha/mm/init.c | |||
@@ -270,7 +270,7 @@ callback_init(void * kernel_end) | |||
270 | void | 270 | void |
271 | paging_init(void) | 271 | paging_init(void) |
272 | { | 272 | { |
273 | unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0}; | 273 | unsigned long zones_size[MAX_NR_ZONES] = {0, }; |
274 | unsigned long dma_pfn, high_pfn; | 274 | unsigned long dma_pfn, high_pfn; |
275 | 275 | ||
276 | dma_pfn = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT; | 276 | dma_pfn = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT; |
diff --git a/arch/frv/mm/init.c b/arch/frv/mm/init.c index b5b4286f9dd4..3f3a0ed3539b 100644 --- a/arch/frv/mm/init.c +++ b/arch/frv/mm/init.c | |||
@@ -98,7 +98,7 @@ void show_mem(void) | |||
98 | */ | 98 | */ |
99 | void __init paging_init(void) | 99 | void __init paging_init(void) |
100 | { | 100 | { |
101 | unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0}; | 101 | unsigned long zones_size[MAX_NR_ZONES] = {0, }; |
102 | 102 | ||
103 | /* allocate some pages for kernel housekeeping tasks */ | 103 | /* allocate some pages for kernel housekeeping tasks */ |
104 | empty_bad_page_table = (unsigned long) alloc_bootmem_pages(PAGE_SIZE); | 104 | empty_bad_page_table = (unsigned long) alloc_bootmem_pages(PAGE_SIZE); |
diff --git a/arch/h8300/mm/init.c b/arch/h8300/mm/init.c index d3d40bdc2d6a..e4f4199f97ab 100644 --- a/arch/h8300/mm/init.c +++ b/arch/h8300/mm/init.c | |||
@@ -138,7 +138,7 @@ void paging_init(void) | |||
138 | #endif | 138 | #endif |
139 | 139 | ||
140 | { | 140 | { |
141 | unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0}; | 141 | unsigned long zones_size[MAX_NR_ZONES] = {0, }; |
142 | 142 | ||
143 | zones_size[ZONE_DMA] = 0 >> PAGE_SHIFT; | 143 | zones_size[ZONE_DMA] = 0 >> PAGE_SHIFT; |
144 | zones_size[ZONE_NORMAL] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT; | 144 | zones_size[ZONE_NORMAL] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT; |
diff --git a/arch/i386/kernel/setup.c b/arch/i386/kernel/setup.c index 27d4dc0d3ef1..060c68004bec 100644 --- a/arch/i386/kernel/setup.c +++ b/arch/i386/kernel/setup.c | |||
@@ -1182,7 +1182,7 @@ static unsigned long __init setup_memory(void) | |||
1182 | 1182 | ||
1183 | void __init zone_sizes_init(void) | 1183 | void __init zone_sizes_init(void) |
1184 | { | 1184 | { |
1185 | unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0}; | 1185 | unsigned long zones_size[MAX_NR_ZONES] = { 0, }; |
1186 | unsigned int max_dma, low; | 1186 | unsigned int max_dma, low; |
1187 | 1187 | ||
1188 | max_dma = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT; | 1188 | max_dma = virt_to_phys((char *)MAX_DMA_ADDRESS) >> PAGE_SHIFT; |
diff --git a/arch/i386/mm/discontig.c b/arch/i386/mm/discontig.c index 2e36eff8aff9..07c300f93764 100644 --- a/arch/i386/mm/discontig.c +++ b/arch/i386/mm/discontig.c | |||
@@ -367,7 +367,7 @@ void __init zone_sizes_init(void) | |||
367 | 367 | ||
368 | 368 | ||
369 | for_each_online_node(nid) { | 369 | for_each_online_node(nid) { |
370 | unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0}; | 370 | unsigned long zones_size[MAX_NR_ZONES] = {0, }; |
371 | unsigned long *zholes_size; | 371 | unsigned long *zholes_size; |
372 | unsigned int max_dma; | 372 | unsigned int max_dma; |
373 | 373 | ||
diff --git a/arch/m32r/mm/init.c b/arch/m32r/mm/init.c index b71348fec1f4..bbd97c85bc5d 100644 --- a/arch/m32r/mm/init.c +++ b/arch/m32r/mm/init.c | |||
@@ -100,7 +100,7 @@ void free_initrd_mem(unsigned long, unsigned long); | |||
100 | #ifndef CONFIG_DISCONTIGMEM | 100 | #ifndef CONFIG_DISCONTIGMEM |
101 | unsigned long __init zone_sizes_init(void) | 101 | unsigned long __init zone_sizes_init(void) |
102 | { | 102 | { |
103 | unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0}; | 103 | unsigned long zones_size[MAX_NR_ZONES] = {0, }; |
104 | unsigned long max_dma; | 104 | unsigned long max_dma; |
105 | unsigned long low; | 105 | unsigned long low; |
106 | unsigned long start_pfn; | 106 | unsigned long start_pfn; |
diff --git a/arch/m68knommu/mm/init.c b/arch/m68knommu/mm/init.c index e4c233eef195..06e538d1be3a 100644 --- a/arch/m68knommu/mm/init.c +++ b/arch/m68knommu/mm/init.c | |||
@@ -136,7 +136,7 @@ void paging_init(void) | |||
136 | #endif | 136 | #endif |
137 | 137 | ||
138 | { | 138 | { |
139 | unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0}; | 139 | unsigned long zones_size[MAX_NR_ZONES] = {0, }; |
140 | 140 | ||
141 | zones_size[ZONE_DMA] = 0 >> PAGE_SHIFT; | 141 | zones_size[ZONE_DMA] = 0 >> PAGE_SHIFT; |
142 | zones_size[ZONE_NORMAL] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT; | 142 | zones_size[ZONE_NORMAL] = (end_mem - PAGE_OFFSET) >> PAGE_SHIFT; |
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index c52497bb102a..5b06349af2d5 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c | |||
@@ -163,10 +163,10 @@ static int __init page_is_ram(unsigned long pagenr) | |||
163 | 163 | ||
164 | void __init paging_init(void) | 164 | void __init paging_init(void) |
165 | { | 165 | { |
166 | unsigned long zones_size[] = { [0 ... MAX_NR_ZONES - 1] = 0 }; | 166 | unsigned long zones_size[] = { 0, }; |
167 | unsigned long max_dma, high, low; | 167 | unsigned long max_dma, high, low; |
168 | #ifndef CONFIG_FLATMEM | 168 | #ifndef CONFIG_FLATMEM |
169 | unsigned long zholes_size[] = { [0 ... MAX_NR_ZONES - 1] = 0 }; | 169 | unsigned long zholes_size[] = { 0, }; |
170 | unsigned long i, j, pfn; | 170 | unsigned long i, j, pfn; |
171 | #endif | 171 | #endif |
172 | 172 | ||
diff --git a/arch/mips/sgi-ip27/ip27-memory.c b/arch/mips/sgi-ip27/ip27-memory.c index efe6971fc800..59bfc0fc3f45 100644 --- a/arch/mips/sgi-ip27/ip27-memory.c +++ b/arch/mips/sgi-ip27/ip27-memory.c | |||
@@ -508,7 +508,7 @@ extern unsigned long setup_zero_pages(void); | |||
508 | 508 | ||
509 | void __init paging_init(void) | 509 | void __init paging_init(void) |
510 | { | 510 | { |
511 | unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0}; | 511 | unsigned long zones_size[MAX_NR_ZONES] = {0, }; |
512 | unsigned node; | 512 | unsigned node; |
513 | 513 | ||
514 | pagetable_init(); | 514 | pagetable_init(); |
diff --git a/arch/parisc/mm/init.c b/arch/parisc/mm/init.c index f2b96f1e0da7..c7329615ef94 100644 --- a/arch/parisc/mm/init.c +++ b/arch/parisc/mm/init.c | |||
@@ -809,7 +809,7 @@ void __init paging_init(void) | |||
809 | flush_tlb_all_local(NULL); | 809 | flush_tlb_all_local(NULL); |
810 | 810 | ||
811 | for (i = 0; i < npmem_ranges; i++) { | 811 | for (i = 0; i < npmem_ranges; i++) { |
812 | unsigned long zones_size[MAX_NR_ZONES] = { 0, 0, 0 }; | 812 | unsigned long zones_size[MAX_NR_ZONES] = { 0, }; |
813 | 813 | ||
814 | /* We have an IOMMU, so all memory can go into a single | 814 | /* We have an IOMMU, so all memory can go into a single |
815 | ZONE_DMA zone. */ | 815 | ZONE_DMA zone. */ |
diff --git a/arch/sh64/mm/init.c b/arch/sh64/mm/init.c index 1169757fb38b..83295bd21aa7 100644 --- a/arch/sh64/mm/init.c +++ b/arch/sh64/mm/init.c | |||
@@ -110,7 +110,7 @@ void show_mem(void) | |||
110 | */ | 110 | */ |
111 | void __init paging_init(void) | 111 | void __init paging_init(void) |
112 | { | 112 | { |
113 | unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0}; | 113 | unsigned long zones_size[MAX_NR_ZONES] = {0, }; |
114 | 114 | ||
115 | pgd_init((unsigned long)swapper_pg_dir); | 115 | pgd_init((unsigned long)swapper_pg_dir); |
116 | pgd_init((unsigned long)swapper_pg_dir + | 116 | pgd_init((unsigned long)swapper_pg_dir + |