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>
This commit is contained in:
@@ -964,7 +964,7 @@ pte_t *find_linux_pte_or_hugepte(pgd_t *pgdir, unsigned long ea, unsigned *shift
|
||||
*shift = 0;
|
||||
|
||||
pgdp = pgdir + pgd_index(ea);
|
||||
pgd = ACCESS_ONCE(*pgdp);
|
||||
pgd = READ_ONCE(*pgdp);
|
||||
/*
|
||||
* Always operate on the local stack value. This make sure the
|
||||
* value don't get updated by a parallel THP split/collapse,
|
||||
@@ -1045,7 +1045,7 @@ int gup_hugepte(pte_t *ptep, unsigned long sz, unsigned long addr,
|
||||
if (pte_end < end)
|
||||
end = pte_end;
|
||||
|
||||
pte = ACCESS_ONCE(*ptep);
|
||||
pte = READ_ONCE(*ptep);
|
||||
mask = _PAGE_PRESENT | _PAGE_USER;
|
||||
if (write)
|
||||
mask |= _PAGE_RW;
|
||||
|
Reference in New Issue
Block a user