powerpc: Fix update form addressing in inline assembly
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 22 Oct 2020 09:29:21 +0000 (09:29 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 4 Dec 2020 11:13:19 +0000 (22:13 +1100)
commitff57698a9610fcf7d9c4469bf68c881eff22e2f8
tree38f5953050157ffa9298fc787df198ff8d26edf9
parentd85be8a49e733dcd23674aa6202870d54bf5600d
powerpc: Fix update form addressing in inline assembly

In several places, inline assembly uses the "%Un" modifier
to enable the use of instruction with update form addressing,
but the associated "<>" constraint is missing.

As mentioned in previous patch, this fails with gcc 4.9, so
"<>" can't be used directly.

Use UPD_CONSTR macro everywhere %Un modifier is used.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/62eab5ca595485c192de1765bdac099f633a21d0.1603358942.git.christophe.leroy@csgroup.eu
arch/powerpc/include/asm/atomic.h
arch/powerpc/include/asm/io.h
arch/powerpc/kvm/powerpc.c