eal: fix ARM build with clang
authorPavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Wed, 11 Apr 2018 17:01:50 +0000 (22:31 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 11 Apr 2018 20:39:50 +0000 (22:39 +0200)
commit7bdccb93078eb0a1bfda34521e3bc3e97d0d0caf
tree5e2acebef398c9182d47534f785ffb06e29b1078
parent6f63858e55e6e30fd0383663ce934f1b2eae74c7
eal: fix ARM build with clang

Use __atomic_exchange_n instead of __atomic_exchange_(2/4/8).

The error was:
include/generic/rte_atomic.h:215:9: error:
implicit declaration of function '__atomic_exchange_2'
is invalid in C99
include/generic/rte_atomic.h:494:9: error:
implicit declaration of function '__atomic_exchange_4'
is invalid in C99
include/generic/rte_atomic.h:772:9: error:
implicit declaration of function '__atomic_exchange_8'
is invalid in C99

Fixes: ff2863570fcc ("eal: introduce atomic exchange operation")

Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
lib/librte_eal/common/include/generic/rte_atomic.h