From: Bruce Richardson <bruce.richardson@intel.com>
To: Thomas Monjalon <thomas@monjalon.net>
Cc: <dev@dpdk.org>
Subject: Re: [PATCH] hash: fix build error due to missing include
Date: Wed, 24 Sep 2025 17:16:07 +0100 [thread overview]
Message-ID: <aNQZR_9n1wCbrxnK@bricha3-mobl1.ger.corp.intel.com> (raw)
In-Reply-To: <6284832.6fTUFtlzNn@thomas>
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@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
next prev parent reply other threads:[~2025-09-24 16:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-24 15:48 Bruce Richardson
2025-09-24 16:05 ` Thomas Monjalon
2025-09-24 16:16 ` Bruce Richardson [this message]
2025-09-24 16:22 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aNQZR_9n1wCbrxnK@bricha3-mobl1.ger.corp.intel.com \
--to=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).