diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-03-25 20:11:57 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-04-10 20:02:47 +1000 |
commit | 4f9c53c8cc76ed84e3bb0cca8c4ffa2b170d0239 (patch) | |
tree | 9592262236d4f0a520cb98e120bff69d4eb36e3d /arch/powerpc/mm/hugepage-hash64.c | |
parent | 5dd4e4f6fe9495f02d4594bd460b84008a3e8e93 (diff) | |
download | linux-4f9c53c8cc76ed84e3bb0cca8c4ffa2b170d0239.tar.bz2 |
powerpc: Fix compile errors with STRICT_MM_TYPECHECKS enabled
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
[mpe: Fix the 32-bit code also]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/hugepage-hash64.c')
-rw-r--r-- | arch/powerpc/mm/hugepage-hash64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/hugepage-hash64.c b/arch/powerpc/mm/hugepage-hash64.c index 86686514ae13..43dafb9d6a46 100644 --- a/arch/powerpc/mm/hugepage-hash64.c +++ b/arch/powerpc/mm/hugepage-hash64.c @@ -33,7 +33,7 @@ int __hash_page_thp(unsigned long ea, unsigned long access, unsigned long vsid, * atomically mark the linux large page PMD busy and dirty */ do { - pmd_t pmd = ACCESS_ONCE(*pmdp); + pmd_t pmd = READ_ONCE(*pmdp); old_pmd = pmd_val(pmd); /* If PMD busy, retry the access */ |