[PATCH] hash: fix build error due to missing include
Bruce Richardson
bruce.richardson at intel.com
Wed Sep 24 18:16:07 CEST 2025
On Wed, Sep 24, 2025 at 06:05:00PM +0200, Thomas Monjalon wrote:
> 24/09/2025 17:48, Bruce Richardson:
> > The file "rte_thash.c" uses the rte_cpu_get_flag_enabled() API but does
> > not include "rte_cpuflags.h". Add the include to fix build issues this
> > causes:
> >
> > ../lib/hash/rte_thash.c: In function ‘rte_thash_gfni_supported’:
> > ../lib/hash/rte_thash.c:79:13: error: implicit declaration of function
> > ‘rte_cpu_get_flag_enabled’ [-Wimplicit-function-declaration]
> > 79 | if (rte_cpu_get_flag_enabled(RTE_CPUFLAG_GFNI) &&
> > | ^~~~~~~~~~~~~~~~~~~~~~~~
> >
> > Fixes: d8f0f514428e ("eal/x86: remove useless include from spinlock header")
> >
> > Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
>
> How is that possible that I don't see this error in my compilations?
>
Seems this code is only included when building with GFNI instructions
enabled. :-(
/Bruce
More information about the dev
mailing list