diff options
author | Christoph Lameter <clameter@sgi.com> | 2006-09-26 08:31:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-09-26 17:48:46 +0200 |
commit | f06a96844a577c43249fce25809a4fae07407f46 (patch) | |
tree | 57fd0fdbfbcce081d27d5595de2886b748b8bb49 /arch/m32r/mm | |
parent | [PATCH] reduce MAX_NR_ZONES: remove two strange uses of MAX_NR_ZONES (diff) | |
download | linux-f06a96844a577c43249fce25809a4fae07407f46.tar.xz linux-f06a96844a577c43249fce25809a4fae07407f46.zip |
[PATCH] reduce MAX_NR_ZONES: fix MAX_NR_ZONES array initializations
Fix array initialization in lots of arches
The number of zones may now be reduced from 4 to 2 for many arches. Fix the
array initialization for the zones array for all architectures so that it is
not initializing a fixed number of elements.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/m32r/mm')
-rw-r--r-- | arch/m32r/mm/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); #ifndef CONFIG_DISCONTIGMEM unsigned long __init zone_sizes_init(void) { - unsigned long zones_size[MAX_NR_ZONES] = {0, 0, 0}; + unsigned long zones_size[MAX_NR_ZONES] = {0, }; unsigned long max_dma; unsigned long low; unsigned long start_pfn; |