Arm/atomic: correct asm() constraints in build_add_sized()
authorJan Beulich <jbeulich@suse.com>
Tue, 12 Mar 2019 13:42:17 +0000 (14:42 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 12 Mar 2019 13:42:17 +0000 (14:42 +0100)
commit51ceb1623b9956440f1b9943c67010a90d61f5c5
treedf22c98dc174281b177d3c4873a9b52c80215c68
parentc8cfbba625e3e74fd0152bd42449821e764cabae
Arm/atomic: correct asm() constraints in build_add_sized()

The memory operand is an in/out one, and the auxiliary register gets
written to early.

Take the opportunity and also drop the redundant cast (the inline
functions' parameters are already of the casted-to type).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
xen/include/asm-arm/atomic.h