]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite5fee41e3428793d9e99f3adbc2f91b5621e9441
tree6b1cdd047b75849c2e70ccc73643d4147500c26d
parentce88222e1fb53c38d3b94c3b5ceebe1d2ab4956d
arm64: add missing data types in smp_load_acquire/smp_store_release

Commit 03856e5aef7e ("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