Message ID | 1572597584-6390-12-git-send-email-rppt@kernel.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | mm: remove __ARCH_HAS_4LEVEL_HACK | expand |
----- Ursprüngliche Mail ----- > Von: "Mike Rapoport" <rppt@kernel.org> > An: linux-mm@kvack.org > CC: "Andrew Morton" <akpm@linux-foundation.org>, "anton ivanov" <anton.ivanov@cambridgegreys.com>, "Arnd Bergmann" > <arnd@arndb.de>, "davem" <davem@davemloft.net>, "Geert Uytterhoeven" <geert@linux-m68k.org>, "Greentime Hu" > <green.hu@gmail.com>, "Greg Ungerer" <gerg@linux-m68k.org>, "Helge Deller" <deller@gmx.de>, "James E.J. Bottomley" > <James.Bottomley@HansenPartnership.com>, "Jeff Dike" <jdike@addtoit.com>, "Kirill A. Shutemov" <kirill@shutemov.name>, > "torvalds" <torvalds@linux-foundation.org>, "Mark Salter" <msalter@redhat.com>, "Matt Turner" <mattst88@gmail.com>, > "Michal Simek" <monstr@monstr.eu>, "Peter Rosin" <peda@axentia.se>, "richard" <richard@nod.at>, "Rolf Eike Beer" > <eike-kernel@sf-tec.de>, "Russell King" <linux@armlinux.org.uk>, "Sam Creasey" <sammy@sammy.net>, "Vincent Chen" > <deanbo422@gmail.com>, "Vineet Gupta" <Vineet.Gupta1@synopsys.com>, "Mike Rapoport" <rppt@kernel.org>, > linux-alpha@vger.kernel.org, "linux-arch" <linux-arch@vger.kernel.org>, "linux-arm-kernel" > <linux-arm-kernel@lists.infradead.org>, linux-c6x-dev@linux-c6x.org, "linux-kernel" <linux-kernel@vger.kernel.org>, > linux-m68k@lists.linux-m68k.org, linux-parisc@vger.kernel.org, "linux-um" <linux-um@lists.infradead.org>, > sparclinux@vger.kernel.org, "Mike Rapoport" <rppt@linux.ibm.com> > Gesendet: Freitag, 1. November 2019 09:39:42 > Betreff: [PATCH v2 11/13] um: remove unused pxx_offset_proc() and addr_pte() functions > From: Mike Rapoport <rppt@linux.ibm.com> > > The pxx_offset_proc() and addr_pte() functions are never used. > Remove them. > > Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Acked-by: Richard Weinberger <richard@nod.at> Thanks, //richard
diff --git a/arch/um/kernel/tlb.c b/arch/um/kernel/tlb.c index b7eaf65..8425a22 100644 --- a/arch/um/kernel/tlb.c +++ b/arch/um/kernel/tlb.c @@ -490,35 +490,6 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long address) force_sig(SIGKILL); } -pgd_t *pgd_offset_proc(struct mm_struct *mm, unsigned long address) -{ - return pgd_offset(mm, address); -} - -pud_t *pud_offset_proc(pgd_t *pgd, unsigned long address) -{ - return pud_offset(pgd, address); -} - -pmd_t *pmd_offset_proc(pud_t *pud, unsigned long address) -{ - return pmd_offset(pud, address); -} - -pte_t *pte_offset_proc(pmd_t *pmd, unsigned long address) -{ - return pte_offset_kernel(pmd, address); -} - -pte_t *addr_pte(struct task_struct *task, unsigned long addr) -{ - pgd_t *pgd = pgd_offset(task->mm, addr); - pud_t *pud = pud_offset(pgd, addr); - pmd_t *pmd = pmd_offset(pud, addr); - - return pte_offset_map(pmd, addr); -} - void flush_tlb_all(void) { /*