[PATCH] eal: fix undeclared function error on old CPUs

David Marchand david.marchand at redhat.com
Thu Jan 23 14:13:26 CET 2025


On Tue, Jan 14, 2025 at 5:33 PM Bruce Richardson
<bruce.richardson at intel.com> wrote:
>
> On Tue, Jan 14, 2025 at 08:21:13AM -0800, Andre Muezerie wrote:
> > Error reported:
> > ../lib/net/net_crc_sse.c:49:17: error: call to undeclared function
> > '_mm_clmulepi64_si128'; ISO C99 and later do not support implicit
> > function declarations [-Wimplicit-function-declaration]
> >
> > The fix is to remove the unnecessary ifdef around the inclusion of
> > header file immintrin.h. This header also contains functions that do
> > not require AVX instructions, so should not be included only when AVX
> > is available.
> >
> > Bugzilla ID: 1595
> > Fixes: da826b7135a4 ("eal: introduce ymm type for AVX 256-bit")
> > Cc: stable at dpdk.org
> >

Reported-by: Pier Damouny <pdamouny at nvidia.com>
> > Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
> Acked-by: Bruce Richardson <bruce.richardson at intel.com>

Applied, thanks Andre.


-- 
David Marchand



More information about the dev mailing list