Skip to content

Commit f757900

Browse files
akpm00torvalds
authored andcommitted
arch/sparc/mm/srmmu.c: fix build
"mm: consolidate pte_index() and pte_offset_*() definitions" was supposed to remove arch/sparc/mm/srmmu.c:pte_offset_kernel(). Fixes: 974b9b2 ("mm: consolidate pte_index() and pte_offset_*() definitions") Reported-by: kernel test robot <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Johannes Weiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 5b14671 commit f757900

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

arch/sparc/mm/srmmu.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,16 +140,6 @@ void pmd_set(pmd_t *pmdp, pte_t *ptep)
140140
set_pte((pte_t *)&pmd_val(*pmdp), __pte(SRMMU_ET_PTD | ptp));
141141
}
142142

143-
/* Find an entry in the third-level page table.. */
144-
pte_t *pte_offset_kernel(pmd_t *dir, unsigned long address)
145-
{
146-
void *pte;
147-
148-
pte = __nocache_va((pmd_val(*dir) & SRMMU_PTD_PMASK) << 4);
149-
return (pte_t *) pte +
150-
((address >> PAGE_SHIFT) & (PTRS_PER_PTE - 1));
151-
}
152-
153143
/*
154144
* size: bytes to allocate in the nocache area.
155145
* align: bytes, number to align at.

0 commit comments

Comments
 (0)