riscv: inline set_pgdir into its only caller

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

    riscv: inline set_pgdir into its only caller
    
    Signed-off-by: Christoph Hellwig <[email protected]>
    Signed-off-by: Palmer Dabbelt <[email protected]>
---
 arch/riscv/include/asm/mmu_context.h | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/arch/riscv/include/asm/mmu_context.h b/arch/riscv/include/asm/mmu_context.h
index d30f0c54b8b2..336d60ec5698 100644
--- a/arch/riscv/include/asm/mmu_context.h
+++ b/arch/riscv/include/asm/mmu_context.h
@@ -39,16 +39,6 @@ static inline void destroy_context(struct mm_struct *mm)
 {
 }
 
-static inline void set_pgdir(pgd_t *pgd)
-{
-	/*
-	 * Use the old spbtr name instead of using the current satp
-	 * name to support binutils 2.29 which doesn't know about the
-	 * privileged ISA 1.10 yet.
-	 */
-	csr_write(sptbr, virt_to_pfn(next->pgd) | SATP_MODE);
-}
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.