diff --git a/arch/sh/mm/gup.c b/arch/sh/mm/gup.c index 37458f38b22093d9bf1b6468577fb39de3f54013..e113bb429e8e4a3caa97549277dcbf670e6f3a80 100644 --- a/arch/sh/mm/gup.c +++ b/arch/sh/mm/gup.c @@ -17,7 +17,7 @@ static inline pte_t gup_get_pte(pte_t *ptep) { #ifndef CONFIG_X2TLB - return ACCESS_ONCE(*ptep); + return READ_ONCE(*ptep); #else /* * With get_user_pages_fast, we walk down the pagetables without