From cc780af5aca00d573eae0e926e1d4cf1439b580e Mon Sep 17 00:00:00 2001 From: Russell King Date: Thu, 26 May 2011 19:50:30 +0100 Subject: [PATCH] ARM: kill pmd_off() pmd_off() has only one user, so lets consolidate this into its only user. Signed-off-by: Russell King --- arch/arm/mm/mm.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/arm/mm/mm.h b/arch/arm/mm/mm.h index d2384106af9c..5b3d7d543659 100644 --- a/arch/arm/mm/mm.h +++ b/arch/arm/mm/mm.h @@ -5,14 +5,9 @@ extern pmd_t *top_pmd; #define TOP_PTE(x) pte_offset_kernel(top_pmd, x) -static inline pmd_t *pmd_off(pgd_t *pgd, unsigned long virt) -{ - return pmd_offset(pud_offset(pgd, virt), virt); -} - static inline pmd_t *pmd_off_k(unsigned long virt) { - return pmd_off(pgd_offset_k(virt), virt); + return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt); } struct mem_type { -- 2.20.1