riscv: remove the unused current_pgdir function

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/0ca7a0b7c13ecafd12b37a6793d3e302dfea0475
Commit:     0ca7a0b7c13ecafd12b37a6793d3e302dfea0475
Parent:     5ec9c4ff0430e33b602cc0ff8ab9dec8ef548d28
Refname:    refs/heads/master
Author:     Christoph Hellwig <[email protected]>
AuthorDate: Tue Jan 9 15:00:33 2018 +0100
Committer:  Palmer Dabbelt <[email protected]>
CommitDate: Tue Jan 30 19:16:00 2018 -0800

    riscv: remove the unused current_pgdir function
    
    Signed-off-by: Christoph Hellwig <[email protected]>
    Signed-off-by: Palmer Dabbelt <[email protected]>
---
 arch/riscv/include/asm/mmu_context.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/riscv/include/asm/mmu_context.h b/arch/riscv/include/asm/mmu_context.h
index 97424834dce2..082ef8652ac7 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);
-}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.