[PATCH 1/3] raw/ioat: fix build error for missing errno

Bruce Richardson bruce.richardson at intel.com
Thu Jun 23 15:49:31 CEST 2022


The inline functions in rte_idxd_rawdev_fns.h make use of rte_errno, but
the header with its definition is not included by that file leading to
build errors.

Fixes: f82c87eb14a4 ("raw/ioat: move idxd functions to separate file")
Cc: stable at dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
---
 drivers/raw/ioat/rte_idxd_rawdev_fns.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/raw/ioat/rte_idxd_rawdev_fns.h b/drivers/raw/ioat/rte_idxd_rawdev_fns.h
index 3ea25f6ca9..a07892faa0 100644
--- a/drivers/raw/ioat/rte_idxd_rawdev_fns.h
+++ b/drivers/raw/ioat/rte_idxd_rawdev_fns.h
@@ -16,6 +16,7 @@
  */

 #include <stdint.h>
+#include <rte_errno.h>

 /*
  * Defines used in the data path for interacting with IDXD hardware.
--
2.34.1



More information about the stable mailing list