diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2020-11-11 12:07:22 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-12-09 13:48:14 +0100 |
commit | c33cd1ed60013ec2ae50f91fed260def5f1d9851 (patch) | |
tree | 87cfda8479ecd7466910f6ad77720619b2d9cc7e | |
parent | powerpc/32s: Cleanup around PTE_FLAGS_OFFSET in hash_low.S (diff) | |
download | linux-c33cd1ed60013ec2ae50f91fed260def5f1d9851.tar.xz linux-c33cd1ed60013ec2ae50f91fed260def5f1d9851.zip |
powerpc/64s/iommu: Don't use atomic_ function on atomic64_t type
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201111110723.3148665-3-npiggin@gmail.com
-rw-r--r-- | arch/powerpc/mm/book3s64/iommu_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |