[dpdk-dev] [PATCH] eal/ppc: fix redefine bool type
David Marchand
david.marchand at redhat.com
Thu Apr 30 11:04:26 CEST 2020
On Thu, Apr 30, 2020 at 10:53 AM Ori Kam <orika at mellanox.com> wrote:
> > > diff --git a/lib/librte_eal/ppc/include/rte_memcpy.h
> > b/lib/librte_eal/ppc/include/rte_memcpy.h
> > > index 25311ba..d234e21 100644
> > > --- a/lib/librte_eal/ppc/include/rte_memcpy.h
> > > +++ b/lib/librte_eal/ppc/include/rte_memcpy.h
> > > @@ -8,13 +8,12 @@
> > >
> > > #include <stdint.h>
> > > #include <string.h>
> > > -/*To include altivec.h, GCC version must >= 4.8 */
> > > -#include <altivec.h>
> >
> > Why move the inclusion under the __cplusplus check?
> >
> Just to make it in the same part as other rte includes.
"Normal" rte includes are usually standalone and "#ifdef __cplusplus" safe.
The rte_altivec.h header you added does not need any "#ifdef
__cplusplus" protection, but it might later).
But otoh, "generic/" headers are special/internal headers and this is
why generic/rte_memcpy.h is under this check.
So if there is no reason on your side, please leave rte_altivec.h
inclusion at the same place as the previous altivec.h.
Thanks.
--
David Marchand
More information about the dev
mailing list