Merge branch 'akpm' (patches from Andrew)
[linux-2.6-microblaze.git] / arch / arm64 / mm / init.c
index 9e26ec8..8ac25f1 100644 (file)
@@ -90,7 +90,6 @@ phys_addr_t __ro_after_init arm64_dma_phys_limit;
 phys_addr_t __ro_after_init arm64_dma_phys_limit = PHYS_MASK + 1;
 #endif
 
-#ifdef CONFIG_KEXEC_CORE
 /*
  * reserve_crashkernel() - reserves memory for crash kernel
  *
@@ -104,6 +103,9 @@ static void __init reserve_crashkernel(void)
        unsigned long long crash_max = arm64_dma_phys_limit;
        int ret;
 
+       if (!IS_ENABLED(CONFIG_KEXEC_CORE))
+               return;
+
        ret = parse_crashkernel(boot_command_line, memblock_phys_mem_size(),
                                &crash_size, &crash_base);
        /* no crashkernel= or invalid value specified */
@@ -136,11 +138,6 @@ static void __init reserve_crashkernel(void)
        crashk_res.start = crash_base;
        crashk_res.end = crash_base + crash_size - 1;
 }
-#else
-static void __init reserve_crashkernel(void)
-{
-}
-#endif /* CONFIG_KEXEC_CORE */
 
 /*
  * Return the maximum physical address for a zone accessible by the given bits