On Wed, 11 Apr 2018 22:42:55 +0200 Thomas Monjalon <tho...@monjalon.net> wrote:
> 11/04/2018 19:01, Pavan Nikhilesh: > > 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 <pbhagavat...@caviumnetworks.com> > > We did not understand why this error is seen only on ARM > (hopefully we won't discover it somewhere else), > but it is a pragmatic fix. > > Applied, thanks Maybe Gcc always defines its own builtin functions.