]> git.droids-corp.org - dpdk.git/commit
dma/idxd: fix non-AVX builds with old compilers
authorBruce Richardson <bruce.richardson@intel.com>
Thu, 23 Jun 2022 13:49:33 +0000 (14:49 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 26 Jun 2022 08:27:15 +0000 (10:27 +0200)
commit86f89b626b7ccb250b7688559922e942f413d0a0
treeac47556e66a5b29ac24bc069e88758407b123098
parent7580f35ea7a6f56f3fb65a3fa8601a6c21515805
dma/idxd: fix non-AVX builds with old compilers

When building without AVX2 support using an older compiler e.g. gcc 4.8
on Centos/RHEL 7, we get build errors due to the use of AVX2 intrinsics.
This is because the compiler does not support
"__attribute__((target(AVX2)))" function attribute. Disable build of
this driver such edge cases.

Generic builds using recent compilers, and all builds with a minimum
baseline of AVX2 are unaffected by this change.

Fixes: aa802b10237c ("dma/idxd: fix AVX2 in non-datapath functions")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Yu Jiang <yux.jiang@intel.com>
drivers/dma/idxd/meson.build