]> git.baikalelectronics.ru Git - kernel.git/commitdiff
arch/sparc/mm/srmmu.c: fix build
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 10 Jun 2020 01:46:16 +0000 (18:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 10 Jun 2020 17:35:28 +0000 (10:35 -0700)
"mm: consolidate pte_index() and pte_offset_*() definitions" was supposed
to remove arch/sparc/mm/srmmu.c:pte_offset_kernel().

Fixes: c80f5fc1c03cef5 ("mm: consolidate pte_index() and pte_offset_*() definitions")
Reported-by: kernel test robot <lkp@intel.com>
Cc: Mike Rapoport <rppt@linux.ibm.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/sparc/mm/srmmu.c

index 989da22ba8e973bf67be7c0d7c35b2f627824f58..0070f8b9a753a942cf332cb8450573e1daac23b4 100644 (file)
@@ -140,16 +140,6 @@ void pmd_set(pmd_t *pmdp, pte_t *ptep)
        set_pte((pte_t *)&pmd_val(*pmdp), __pte(SRMMU_ET_PTD | ptp));
 }
 
-/* Find an entry in the third-level page table.. */
-pte_t *pte_offset_kernel(pmd_t *dir, unsigned long address)
-{
-       void *pte;
-
-       pte = __nocache_va((pmd_val(*dir) & SRMMU_PTD_PMASK) << 4);
-       return (pte_t *) pte +
-           ((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1));
-}
-
 /*
  * size: bytes to allocate in the nocache area.
  * align: bytes, number to align at.