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>

authored by

Yinghai Lu and committed by
Ingo Molnar
7c996361 3661ca66

+1 -2
+1 -2
arch/arm/mm/init.c
··· 249 249 static void arm_memory_present(void) 250 250 { 251 251 struct memblock_region *reg; 252 - int i; 253 252 254 - for_each_memblock(memory, reg) { 253 + for_each_memblock(memory, reg) 255 254 memory_present(0, memblock_region_base_pfn(reg), 256 255 memblock_region_end_pfn(reg)); 257 256 }