提交 cc780af5 编写于 作者: R Russell King

ARM: kill pmd_off()

pmd_off() has only one user, so lets consolidate this into its only
user.
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 1784b157
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册