[U-Boot] atomic-long: Fix warnings on arm64

Tom Rini trini at konsulko.com
Sun Jan 28 18:53:02 UTC 2018


On Fri, Jan 26, 2018 at 10:11:04PM -0500, Bradley Bolen wrote:

> 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 at gmail.com>

Applied to u-boot/master, thanks!

[Michal, I think this ends up being easier to maintain long-term than
your RFC patch that removed all of these functions]

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180128/981e38fa/attachment.sig>


More information about the U-Boot mailing list