1 --- a/arch/arm/kernel/setup.c
2 +++ b/arch/arm/kernel/setup.c
3 @@ -323,12 +323,13 @@ static void __init setup_processor(void)
6 unsigned int cpu = smp_processor_id();
7 - struct stack *stk = &stacks[cpu];
11 printk(KERN_CRIT "CPU%u: bad primary CPU number\n", cpu);
17 * Define the placement constraint for the inline asm directive below.
18 @@ -387,13 +388,14 @@ static struct machine_desc * __init setu
20 static int __init arm_add_memory(unsigned long start, unsigned long size)
22 - struct membank *bank = &meminfo.bank[meminfo.nr_banks];
23 + struct membank *bank;
25 if (meminfo.nr_banks >= NR_BANKS) {
26 printk(KERN_CRIT "NR_BANKS too low, "
27 "ignoring memory at %#lx\n", start);
30 + bank = &meminfo.bank[meminfo.nr_banks];
33 * Ensure that start/size are aligned to a page boundary.