atomic-long: Fix warnings on arm64
authorBradley Bolen <bradleybolen@gmail.com>
Sat, 27 Jan 2018 03:11:04 +0000 (22:11 -0500)
committerTom Rini <trini@konsulko.com>
Sun, 28 Jan 2018 14:39:05 +0000 (09:39 -0500)
commit9c3264ce40130966897fb9c1b91c120f588531d0
treee60f09f6e081d161685eec36ef613b5211899ea4
parent2d58dddf7a37ea548bb940de2db050f5fe1a582d
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>
include/asm-generic/atomic-long.h