arm64: add missing data types in smp_load_acquire/smp_store_release
authorAndre Przywara <andre.przywara@arm.com>
Mon, 20 Apr 2015 10:14:19 +0000 (11:14 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 27 Apr 2015 10:39:04 +0000 (11:39 +0100)
commit878a84d5a8a18a4ab241d40cebb791d6aedf5605
tree6b1cdd047b75849c2e70ccc73643d4147500c26d
parentb787f68c36d49bb1d9236f403813641efa74a031
arm64: add missing data types in smp_load_acquire/smp_store_release

Commit 8053871d0f7f ("smp: Fix smp_call_function_single_async()
locking") introduced a call to smp_load_acquire() with a u16 argument,
but we only cared about u32 and u64 types in that function so far.
This resulted in a compiler warning fortunately, pointing at an
uninitialized use. Due to the implementation structure the compiler
misses that bug in the smp_store_release(), though.
Add the u16 and u8 variants using ldarh/stlrh and ldarb/stlrb,
respectively. Together with the compiletime_assert_atomic_type() check
this should cover all cases now.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/include/asm/barrier.h