]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/x86/mm/init_64.c
x86: fix an incompatible pointer type warning on 64-bit compilations
[linux-2.6-omap-h63xx.git] / arch / x86 / mm / init_64.c
index 32ba13b0f818183bbeb2eb37eba74c1bdc4a35a9..998a06ea5f7d17b2d5172ab14df80a0d5e7d4b93 100644 (file)
@@ -206,7 +206,7 @@ void __init cleanup_highmap(void)
        pmd_t *last_pmd = pmd + PTRS_PER_PMD;
 
        for (; pmd < last_pmd; pmd++, vaddr += PMD_SIZE) {
-               if (!pmd_present(*pmd))
+               if (pmd_none(*pmd))
                        continue;
                if (vaddr < (unsigned long) _text || vaddr > end)
                        set_pmd(pmd, __pmd(0));