]> xenbits.xensource.com Git - xen.git/commit
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)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 19 Apr 2019 21:03:32 +0000 (14:03 -0700)
commitb2bbd342576576eb8a165a6abf9559d772ee242b
tree34ac7be2a95b923a3a10c420a07589f2e1ca70b6
parent7842419a6b85edb4a5b9bee8b1179de4c8b84b60
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>
(cherry picked from commit 51ceb1623b9956440f1b9943c67010a90d61f5c5)
xen/include/asm-arm/atomic.h