Rather than storing the start of vmalloc space, store the size, and
move the calculation into adjust_lowmem_limit(). We now have one single
place where this calculation takes place.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Yanfei Xu <yanfei.xu@windriver.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
 }
 #endif
 
-static unsigned long __initdata vmalloc_start = VMALLOC_END - (240 << 20);
+static unsigned long __initdata vmalloc_size = 240 << 20;
 
 /*
  * vmalloc=size forces the vmalloc area to be exactly 'size'
                        vmalloc_reserve >> 20);
        }
 
-       vmalloc_start = VMALLOC_END - vmalloc_reserve;
+       vmalloc_size = vmalloc_reserve;
        return 0;
 }
 early_param("vmalloc", early_vmalloc);
         * and may itself be outside the valid range for which phys_addr_t
         * and therefore __pa() is defined.
         */
-       vmalloc_limit = (u64)vmalloc_start - VMALLOC_OFFSET -
+       vmalloc_limit = (u64)VMALLOC_END - vmalloc_size - VMALLOC_OFFSET -
                        PAGE_OFFSET + PHYS_OFFSET;
 
        /*