From: Chris Metcalf Date: Fri, 13 Sep 2013 15:14:25 +0000 (-0400) Subject: tile: use pmd_pfn() instead of casting via pte_t X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8629470ef89da00bd1b974df17ccbb36b3865798;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git tile: use pmd_pfn() instead of casting via pte_t Signed-off-by: Chris Metcalf --- diff --git a/arch/tile/mm/pgtable.c b/arch/tile/mm/pgtable.c index 2deaddf3e01f..4fd9ec0b58ed 100644 --- a/arch/tile/mm/pgtable.c +++ b/arch/tile/mm/pgtable.c @@ -127,8 +127,7 @@ void shatter_huge_page(unsigned long addr) } /* Shatter the huge page into the preallocated L2 page table. */ - pmd_populate_kernel(&init_mm, pmd, - get_prealloc_pte(pte_pfn(*(pte_t *)pmd))); + pmd_populate_kernel(&init_mm, pmd, get_prealloc_pte(pmd_pfn(*pmd))); #ifdef __PAGETABLE_PMD_FOLDED /* Walk every pgd on the system and update the pmd there. */