Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Nicholas Piggin and committed by
Michael Ellerman
c33cd1ed da481c4f

+1 -1
+1 -1
arch/powerpc/mm/book3s64/iommu_api.c
··· 263 263 goto unlock_exit; 264 264 265 265 /* Are there still mappings? */ 266 - if (atomic_cmpxchg(&mem->mapped, 1, 0) != 1) { 266 + if (atomic64_cmpxchg(&mem->mapped, 1, 0) != 1) { 267 267 ++mem->used; 268 268 ret = -EBUSY; 269 269 goto unlock_exit;