[dpdk-dev] [PATCH v2] eal: fix clang compilation error on ARM64
Stephen Hemminger
stephen at networkplumber.org
Wed Apr 11 23:48:24 CEST 2018
On Wed, 11 Apr 2018 22:42:55 +0200
Thomas Monjalon <thomas at 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 <pbhagavatula at 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.
More information about the dev
mailing list