Skip to content

Commit 78c24f7

Browse files
akpm00torvalds
authored andcommitted
arch/powerpc/mm/pgtable.c: another missed conversion
Fixes: e05c7b1 ("mm: pgtable: add shortcuts for accessing kernel PMD and PTE") Reported-by: kernel test robot <[email protected]> Reported-by: Guenter Roeck <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Mike Rapoport <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 6d62c5b commit 78c24f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/mm/pgtable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ int huge_ptep_set_access_flags(struct vm_area_struct *vma,
264264
#if defined(CONFIG_PPC_8xx)
265265
void set_huge_pte_at(struct mm_struct *mm, unsigned long addr, pte_t *ptep, pte_t pte)
266266
{
267-
pmd_t *pmd = pmd_ptr(mm, addr);
267+
pmd_t *pmd = pmd_off(mm, addr);
268268
pte_basic_t val;
269269
pte_basic_t *entry = &ptep->pte;
270270
int num = is_hugepd(*((hugepd_t *)pmd)) ? 1 : SZ_512K / SZ_4K;

0 commit comments

Comments
 (0)