[PATCH] hash: fix build error due to missing include
Thomas Monjalon
thomas at monjalon.net
Wed Sep 24 18:22:50 CEST 2025
24/09/2025 18:05, Thomas Monjalon:
> 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?
That's because we see it only on CPU having GFNI.
Applied, thanks.
More information about the dev
mailing list