Skip to content

Commit 4e65e76

Browse files
rppttorvalds
authored andcommitted
um: remove unused pxx_offset_proc() and addr_pte() functions
The pxx_offset_proc() and addr_pte() functions are never used. Remove them. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Mike Rapoport <[email protected]> Acked-by: Richard Weinberger <[email protected]> Cc: Anatoly Pugachev <[email protected]> Cc: Anton Ivanov <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Geert Uytterhoeven <[email protected]> Cc: Greentime Hu <[email protected]> Cc: Greg Ungerer <[email protected]> Cc: Helge Deller <[email protected]> Cc: "James E.J. Bottomley" <[email protected]> Cc: Jeff Dike <[email protected]> Cc: "Kirill A. Shutemov" <[email protected]> Cc: Mark Salter <[email protected]> Cc: Matt Turner <[email protected]> Cc: Michal Simek <[email protected]> Cc: Peter Rosin <[email protected]> Cc: Rolf Eike Beer <[email protected]> Cc: Russell King <[email protected]> Cc: Russell King <[email protected]> Cc: Sam Creasey <[email protected]> Cc: Vincent Chen <[email protected]> Cc: Vineet Gupta <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 7235db2 commit 4e65e76

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

arch/um/kernel/tlb.c

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -490,35 +490,6 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long address)
490490
force_sig(SIGKILL);
491491
}
492492

493-
pgd_t *pgd_offset_proc(struct mm_struct *mm, unsigned long address)
494-
{
495-
return pgd_offset(mm, address);
496-
}
497-
498-
pud_t *pud_offset_proc(pgd_t *pgd, unsigned long address)
499-
{
500-
return pud_offset(pgd, address);
501-
}
502-
503-
pmd_t *pmd_offset_proc(pud_t *pud, unsigned long address)
504-
{
505-
return pmd_offset(pud, address);
506-
}
507-
508-
pte_t *pte_offset_proc(pmd_t *pmd, unsigned long address)
509-
{
510-
return pte_offset_kernel(pmd, address);
511-
}
512-
513-
pte_t *addr_pte(struct task_struct *task, unsigned long addr)
514-
{
515-
pgd_t *pgd = pgd_offset(task->mm, addr);
516-
pud_t *pud = pud_offset(pgd, addr);
517-
pmd_t *pmd = pmd_offset(pud, addr);
518-
519-
return pte_offset_map(pmd, addr);
520-
}
521-
522493
void flush_tlb_all(void)
523494
{
524495
/*

0 commit comments

Comments
 (0)