xen/arm: Fix ARM build following c/s 11c397c
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 8 Feb 2017 19:10:15 +0000 (19:10 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 8 Feb 2017 23:36:19 +0000 (15:36 -0800)
commit9d5617cd89e7b285afa785b9a9d3495f4e2dffae
tree1e5cd53c9035553b758cf41283c03efa323ea4b2
parent6cc8e8708e65f42d12ff7ea02156aafc5afdb2f7
xen/arm: Fix ARM build following c/s 11c397c

c/s 11c397c broke the ARM build by introducing a common ACCESS_ONCE() which is
different to the definition in smmu.c

The SMMU code included a scalar typecheck, which is worth keeping in the
common case, given ACCESS_ONCE()'s restrictions.  However, express the
typecheck differently so as to avoid Coverity complaints about unused
variables.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/drivers/passthrough/arm/smmu.c
xen/include/xen/lib.h