net/octeon_ep: fix build for non-x86

Message ID 20220926071926.2846359-1-david.marchand@redhat.com (mailing list archive)
State Accepted, archived
Delegated to: David Marchand
Headers
Series net/octeon_ep: fix build for non-x86 |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/iol-testing warning apply patch failure
ci/intel-Testing success Testing PASS

Commit Message

David Marchand Sept. 26, 2022, 7:19 a.m. UTC
  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(+)
  

Patch

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