Skip to content

Commit

Permalink
ARM: kill pmd_off()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King committed May 26, 2011
1 parent 1784b15 commit cc780af
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions arch/arm/mm/mm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit cc780af

Please sign in to comment.