[PATCH 3/3] dma/idxd: fix non-AVX builds with older compilers
Thomas Monjalon
thomas at monjalon.net
Sun Jun 26 10:29:02 CEST 2022
> > 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")
> >
> > Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> > ---
> Tested-by: Yu Jiang <YuX.Jiang at intel.com>
>
> Tested env as below:
> OS: CentOS7.9/kernel: 3.10.0-1160.62.1.el7.x86_64
> Compiler: gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC)
Series applied, thanks.
More information about the dev
mailing list