]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
m68knommu: fix build when CPU is not coldfire
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sun, 17 Feb 2013 01:33:34 +0000 (23:33 -0200)
committerGreg Ungerer <gerg@uclinux.org>
Mon, 4 Mar 2013 01:08:39 +0000 (11:08 +1000)
Commit dd1cb3a7c43508c29e17836628090c0735bd3137 [merge MMU and non-MMU
versions of mm/init.c] unified mm/init.c for both MMU and non-MMU m68k
platforms. However, it broke when we build a non-MMU M68K Classic CPU kernel.

This fix builds a section that came from the MMU version only when we are
building a MMU kernel.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/mm/init.c

index afd8106fd83b10c2b1d51b956b178effd9a6b096..519aad8fa812ca6ac7ce07f82abb06ae080139bf 100644 (file)
@@ -188,7 +188,7 @@ void __init mem_init(void)
                }
        }
 
-#if !defined(CONFIG_SUN3) && !defined(CONFIG_COLDFIRE)
+#if defined(CONFIG_MMU) && !defined(CONFIG_SUN3) && !defined(CONFIG_COLDFIRE)
        /* insert pointer tables allocated so far into the tablelist */
        init_pointer_table((unsigned long)kernel_pg_dir);
        for (i = 0; i < PTRS_PER_PGD; i++) {