From: Christoph Lameter ifdef around migration codeClean up various minor things. Put #ifdef CONFIG_MIGRATION around two locations that would generate code for the non migration case. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton --- mm/mprotect.c | 2 ++ rmap.c | 0 2 files changed, 2 insertions(+) diff -puN mm/mprotect.c~swapless-pm-add-r-w-migration-entries-ifdefs mm/mprotect.c --- devel/mm/mprotect.c~swapless-pm-add-r-w-migration-entries-ifdefs 2006-05-10 23:43:42.000000000 -0700 +++ devel-akpm/mm/mprotect.c 2006-05-10 23:43:42.000000000 -0700 @@ -45,6 +45,7 @@ static void change_pte_range(struct mm_s ptent = pte_modify(ptep_get_and_clear(mm, addr, pte), newprot); set_pte_at(mm, addr, pte, ptent); lazy_mmu_prot_update(ptent); +#ifdef CONFIG_MIGRATION } else if (!pte_file(oldpte)) { swp_entry_t entry = pte_to_swp_entry(oldpte); @@ -57,6 +58,7 @@ static void change_pte_range(struct mm_s set_pte_at(mm, addr, pte, swp_entry_to_pte(entry)); } +#endif } } while (pte++, addr += PAGE_SIZE, addr != end); diff -puN mm/rmap.c~swapless-pm-add-r-w-migration-entries-ifdefs mm/rmap.c _