Skip to content

Commit cc780af

Browse files
author
Russell King
committed
ARM: kill pmd_off()
pmd_off() has only one user, so lets consolidate this into its only user. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 1784b15 commit cc780af

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎arch/arm/mm/mm.h‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,9 @@ extern pmd_t *top_pmd;
55

66
#define TOP_PTE(x) pte_offset_kernel(top_pmd, x)
77

8-
static inline pmd_t *pmd_off(pgd_t *pgd, unsigned long virt)
9-
{
10-
return pmd_offset(pud_offset(pgd, virt), virt);
11-
}
12-
138
static inline pmd_t *pmd_off_k(unsigned long virt)
149
{
15-
return pmd_off(pgd_offset_k(virt), virt);
10+
return pmd_offset(pud_offset(pgd_offset_k(virt), virt), virt);
1611
}
1712

1813
struct mem_type {

0 commit comments

Comments
 (0)