Signed-off-by: Nicholas Piggin <npig...@gmail.com>
---
 arch/powerpc/mm/book3s64/iommu_api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/mm/book3s64/iommu_api.c 
b/arch/powerpc/mm/book3s64/iommu_api.c
index 563faa10bb66..685d7bb3d26f 100644
--- a/arch/powerpc/mm/book3s64/iommu_api.c
+++ b/arch/powerpc/mm/book3s64/iommu_api.c
@@ -263,7 +263,7 @@ long mm_iommu_put(struct mm_struct *mm, struct 
mm_iommu_table_group_mem_t *mem)
                goto unlock_exit;
 
        /* Are there still mappings? */
-       if (atomic_cmpxchg(&mem->mapped, 1, 0) != 1) {
+       if (atomic64_cmpxchg(&mem->mapped, 1, 0) != 1) {
                ++mem->used;
                ret = -EBUSY;
                goto unlock_exit;
-- 
2.23.0

Reply via email to