[PATCH] eal/ppc: undefine AltiVec keyword vector

Ali Alnubani alialnu at nvidia.com
Wed May 25 13:08:49 CEST 2022


> -----Original Message-----
> From: Thomas Monjalon <thomas at monjalon.net>
> Sent: Wednesday, May 25, 2022 12:53 PM
> To: dev at dpdk.org
> Cc: mdr at ashroe.eu; david.marchand at redhat.com; techboard at dpdk.org;
> David Christensen <drc at linux.vnet.ibm.com>
> Subject: [PATCH] eal/ppc: undefine AltiVec keyword vector
> 
> The AltiVec header file is defining "vector", except in C++ build.
> The keyword "vector" may conflict easily.
> As a rule, it is better to use the alternative keyword "__vector".
> 
> The DPDK header file rte_altivec.h takes care of undefining "vector",
> so the applications and dependencies are free to define the name "vector".
> 
> This is a compatibility breakage for applications which were using
> the keyword "vector" for its AltiVec meaning.
> 
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
> ---

Build passes with latest rdma-core master (36395896) on Ubuntu 20.04.4.

Tested-by: Ali Alnubani <alialnu at nvidia.com>

Thanks,
Ali


More information about the dev mailing list