From: Christoph Hellwig Date: Tue, 9 Jan 2018 14:00:33 +0000 (+0100) Subject: riscv: remove the unused current_pgdir function X-Git-Tag: v4.16-rc1~45^2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0ca7a0b7c13ecafd12b37a6793d3e302dfea0475;p=users%2Fjedix%2Flinux-maple.git riscv: remove the unused current_pgdir function Signed-off-by: Christoph Hellwig Signed-off-by: Palmer Dabbelt --- diff --git a/arch/riscv/include/asm/mmu_context.h b/arch/riscv/include/asm/mmu_context.h index 97424834dce2a..082ef8652ac7c 100644 --- a/arch/riscv/include/asm/mmu_context.h +++ b/arch/riscv/include/asm/mmu_context.h @@ -39,11 +39,6 @@ static inline void destroy_context(struct mm_struct *mm) { } -static inline pgd_t *current_pgdir(void) -{ - return pfn_to_virt(csr_read(sptbr) & SPTBR_PPN); -} - static inline void set_pgdir(pgd_t *pgd) { csr_write(sptbr, virt_to_pfn(pgd) | SPTBR_MODE);