atomic-long: Fix warnings on arm64
authorBradley Bolen <bradleybolen@gmail.com>
Sat, 27 Jan 2018 03:11:04 +0000 (22:11 -0500)
committerYe Li <ye.li@nxp.com>
Sat, 24 Feb 2018 06:26:50 +0000 (22:26 -0800)
commitbff0016b18a57a9aeafed75b7c14adba8bcfa4c1
tree562c6eee377cf7c1ebbac11ac71d5e8db09df3fc
parent1292a284a0c6d2f39cf0987cc6538f5d46d00f11
atomic-long: Fix warnings on arm64

Several inline functions in this file reference undefined functions in
U-Boot.  For example:

atomic-long.h:73:9: warning: implicit declaration of function
'atomic64_sub_and_test'
atomic-long.h:80:9: warning: implicit declaration of function
'atomic64_dec_and_test'
atomic-long.h:87:9: warning: implicit declaration of function
'atomic64_inc_and_test'

Handle this the same as the 32 bit build by wrapping these functions in
a __UBOOT__ check.

Signed-off-by: Bradley Bolen <bradleybolen@gmail.com>
(cherry picked from commit 9c3264ce40130966897fb9c1b91c120f588531d0)
include/asm-generic/atomic-long.h