From: David Marchand <david.marchand@redhat.com>
To: dev@dpdk.org, thomas@monjalon.net
Cc: Radha Mohan Chintakuntla <radhac@marvell.com>,
Veerasenareddy Burru <vburru@marvell.com>,
Sathesh Edara <sedara@marvell.com>
Subject: [PATCH] net/octeon_ep: fix build for non-x86
Date: Mon, 26 Sep 2022 09:19:26 +0200 [thread overview]
Message-ID: <20220926071926.2846359-1-david.marchand@redhat.com> (raw)
A recent change removed errno.h from rte_common.h.
x86 EAL headers seem to include it (probably via
rte_spinlock/rte_cpuflags) but other architectures won't.
Add an explicit inclusion.
Fixes: d826133ae88e ("net/octeon_ep: support CN10K SoC")
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
Note: This patch is already applied and pushed in the main repository to fix
builds.
---
drivers/net/octeon_ep/cnxk_ep_vf.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/net/octeon_ep/cnxk_ep_vf.c b/drivers/net/octeon_ep/cnxk_ep_vf.c
index 52f08c844b..3427fb213b 100644
--- a/drivers/net/octeon_ep/cnxk_ep_vf.c
+++ b/drivers/net/octeon_ep/cnxk_ep_vf.c
@@ -2,8 +2,11 @@
* Copyright(C) 2022 Marvell.
*/
+#include <errno.h>
+
#include <rte_common.h>
#include <rte_cycles.h>
+
#include "cnxk_ep_vf.h"
static void
--
2.37.3
reply other threads:[~2022-09-26 7:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20220926071926.2846359-1-david.marchand@redhat.com \
--to=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=radhac@marvell.com \
--cc=sedara@marvell.com \
--cc=thomas@monjalon.net \
--cc=vburru@marvell.com \
/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).