diff options
author | Yinghai Lu <yinghai@kernel.org> | 2010-09-16 03:20:36 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-09-16 03:35:12 -0400 |
commit | 7c996361ef0d02ef8c1435902c909d14195adcdc (patch) | |
tree | c3c82141dca788406248e3033263e6a798772ae6 /arch/arm/mm | |
parent | 3661ca66a42e306aaf53246fb75aec1ea01be0f0 (diff) |
arm, memblock: Fix the sparsemem build
Stephen Rothwell reported this build failure:
arch/arm/mm/init.c: In function 'arm_memory_present':
arch/arm/mm/init.c:260: warning: ISO C90 forbids mixed declarations and code
Caused by commit 719c1514f2 ("memblock/arm: Use new accessors")
which forgot a closing brace on a new for_each_memblock() in
arm_memory_present().
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Russell King <linux@arm.linux.org.uk>
LKML-Reference: <4C91C544.5050907@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 8504906b147f..d6022d1f51d1 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -249,9 +249,8 @@ static void arm_memory_present(void) | |||
249 | static void arm_memory_present(void) | 249 | static void arm_memory_present(void) |
250 | { | 250 | { |
251 | struct memblock_region *reg; | 251 | struct memblock_region *reg; |
252 | int i; | ||
253 | 252 | ||
254 | for_each_memblock(memory, reg) { | 253 | for_each_memblock(memory, reg) |
255 | memory_present(0, memblock_region_base_pfn(reg), | 254 | memory_present(0, memblock_region_base_pfn(reg), |
256 | memblock_region_end_pfn(reg)); | 255 | memblock_region_end_pfn(reg)); |
257 | } | 256 | } |