• Y
    arm, memblock: Fix the sparsemem build · 7c996361
    Yinghai Lu 提交于
    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 719c1514 ("memblock/arm: Use new accessors")
    which forgot a closing brace on a new for_each_memblock() in
    arm_memory_present().
    Reported-by: NStephen Rothwell <sfr@canb.auug.org.au>
    Signed-off-by: NYinghai 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: NIngo Molnar <mingo@elte.hu>
    7c996361
init.c 14.7 KB