diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> | 2023-06-16 16:38:11 +0530 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-06-20 21:50:57 +1000 |
commit | 040ec6202bb89d51e2d8d4c848d8160c0e5e3fe8 (patch) | |
tree | 3255334cf4c38031d0e6b74073779f09b2f9971e | |
parent | b684c09f09e7a6af3794d4233ef785819e72db79 (diff) | |
download | linux-stable-040ec6202bb89d51e2d8d4c848d8160c0e5e3fe8.tar.gz linux-stable-040ec6202bb89d51e2d8d4c848d8160c0e5e3fe8.tar.bz2 linux-stable-040ec6202bb89d51e2d8d4c848d8160c0e5e3fe8.zip |
powerpc/mm/book3s64: Use pmdp_ptep helper instead of typecasting.
No functional change in this patch.
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Tested-by: Sachin Sant <sachinp@linux.ibm.com <mailto:sachinp@linux.ibm.com>>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230616110826.344417-2-aneesh.kumar@linux.ibm.com
-rw-r--r-- | arch/powerpc/mm/book3s64/radix_pgtable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/book3s64/radix_pgtable.c b/arch/powerpc/mm/book3s64/radix_pgtable.c index 2297aa764ecd..5f8c6fbe8a69 100644 --- a/arch/powerpc/mm/book3s64/radix_pgtable.c +++ b/arch/powerpc/mm/book3s64/radix_pgtable.c @@ -952,7 +952,7 @@ unsigned long radix__pmd_hugepage_update(struct mm_struct *mm, unsigned long add assert_spin_locked(pmd_lockptr(mm, pmdp)); #endif - old = radix__pte_update(mm, addr, (pte_t *)pmdp, clr, set, 1); + old = radix__pte_update(mm, addr, pmdp_ptep(pmdp), clr, set, 1); trace_hugepage_update(addr, old, clr, set); return old; |