On Thu, 2018-12-27 at 12:13 +0800, Gavin Hu wrote: > When CONFIG_RTE_FORCE_INTRINSICS is enabled for x86, the clang > compilation 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 > > Use __atomic_exchange_n instead of __atomic_exchange_(2/4/8). > For more information, please refer to: > http://mails.dpdk.org/archives/dev/2018-April/096776.html > > Fixes: 7bdccb93078e ("eal: fix ARM build with clang") > Cc: sta...@dpdk.org > > Signed-off-by: Gavin Hu <gavin...@arm.com>
Acked-by: Jerin Jacob <jer...@marvell.com>