riscv: remove the unused current_pgdir function
authorChristoph Hellwig <hch@lst.de>
Tue, 9 Jan 2018 14:00:33 +0000 (15:00 +0100)
committerPalmer Dabbelt <palmer@dabbelt.com>
Wed, 31 Jan 2018 03:16:00 +0000 (19:16 -0800)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/include/asm/mmu_context.h

index 97424834dce2a7706bccebe505602d21fa78834b..082ef8652ac7cbd288020a0f619dbd0814e930aa 100644 (file)
@@ -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);