[PATCH v2 05/68] drivers: add missing include of rte_memcpy.h

Stephen Hemminger <[email protected]>
Newsgroups org.dpdk.dev
Message-ID <[email protected]>
These files use rte_memcpy() but relied on rte_memcpy.h being
included indirectly via another header. Add the direct include
so that later patches which remove now-unnecessary includes of
rte_memcpy.h do not break the build.

Signed-off-by: Stephen Hemminger <[email protected]>
---
 drivers/baseband/turbo_sw/bbdev_turbo_software.c | 1 +
 drivers/common/mlx5/mlx5_common_mr.c             | 1 +
 drivers/dma/dpaa2/dpaa2_qdma.c                   | 1 +
 drivers/ml/cnxk/cn10k_ml_dev.c                   | 1 +
 drivers/ml/cnxk/cn10k_ml_model.c                 | 1 +
 drivers/ml/cnxk/cn10k_ml_ops.c                   | 1 +
 drivers/ml/cnxk/cnxk_ml_io.c                     | 1 +
 drivers/ml/cnxk/tvmrt_ml_ops.c                   | 1 +
 drivers/regex/mlx5/mlx5_rxp.c                    | 1 +
 9 files changed, 9 insertions(+)

diff --git a/drivers/baseband/turbo_sw/bbdev_turbo_software.c b/drivers/baseband/turbo_sw/bbdev_turbo_software.c
index 2cab495294..cb4aaea6d2 100644
--- a/drivers/baseband/turbo_sw/bbdev_turbo_software.c
+++ b/drivers/baseband/turbo_sw/bbdev_turbo_software.c
@@ -8,6 +8,7 @@
 #include <rte_common.h>
 #include <bus_vdev_driver.h>
 #include <rte_malloc.h>
+#include <rte_memcpy.h>
 #include <rte_ring.h>
 #include <rte_kvargs.h>
 #include <rte_cycles.h>
diff --git a/drivers/common/mlx5/mlx5_common_mr.c b/drivers/common/mlx5/mlx5_common_mr.c
index aa2d5e88a4..929b47dcc8 100644
--- a/drivers/common/mlx5/mlx5_common_mr.c
+++ b/drivers/common/mlx5/mlx5_common_mr.c
@@ -8,6 +8,7 @@
 #include <rte_eal_memconfig.h>
 #include <rte_eal_paging.h>
 #include <rte_errno.h>
+#include <rte_memcpy.h>
 #include <rte_mempool.h>
 #include <rte_malloc.h>
 #include <rte_rwlock.h>
diff --git a/drivers/dma/dpaa2/dpaa2_qdma.c b/drivers/dma/dpaa2/dpaa2_qdma.c
index f7d94bb799..84281844b3 100644
--- a/drivers/dma/dpaa2/dpaa2_qdma.c
+++ b/drivers/dma/dpaa2/dpaa2_qdma.c
@@ -10,6 +10,7 @@
 
 #include <mc/fsl_dpdmai.h>
 
+#include <rte_memcpy.h>
 #include <rte_pmd_dpaax_qdma.h>
 #include "dpaa2_hw_dpio.h"
 #include "dpaa2_qdma.h"
diff --git a/drivers/ml/cnxk/cn10k_ml_dev.c b/drivers/ml/cnxk/cn10k_ml_dev.c
index c35895dc14..5880770630 100644
--- a/drivers/ml/cnxk/cn10k_ml_dev.c
+++ b/drivers/ml/cnxk/cn10k_ml_dev.c
@@ -6,6 +6,7 @@
 #include <rte_dev.h>
 #include <rte_devargs.h>
 #include <rte_kvargs.h>
+#include <rte_memcpy.h>
 #include <rte_mldev.h>
 #include <rte_mldev_pmd.h>
 #include <rte_pci.h>
diff --git a/drivers/ml/cnxk/cn10k_ml_model.c b/drivers/ml/cnxk/cn10k_ml_model.c
index fa978529f5..58eebbf076 100644
--- a/drivers/ml/cnxk/cn10k_ml_model.c
+++ b/drivers/ml/cnxk/cn10k_ml_model.c
@@ -3,6 +3,7 @@
  */
 
 #include <rte_hash_crc.h>
+#include <rte_memcpy.h>
 
 #include <mldev_utils.h>
 
diff --git a/drivers/ml/cnxk/cn10k_ml_ops.c b/drivers/ml/cnxk/cn10k_ml_ops.c
index 597806b787..ffe3356720 100644
--- a/drivers/ml/cnxk/cn10k_ml_ops.c
+++ b/drivers/ml/cnxk/cn10k_ml_ops.c
@@ -2,6 +2,7 @@
  * Copyright (c) 2022 Marvell.
  */
 
+#include <rte_memcpy.h>
 #include <rte_mldev.h>
 #include <rte_mldev_pmd.h>
 
diff --git a/drivers/ml/cnxk/cnxk_ml_io.c b/drivers/ml/cnxk/cnxk_ml_io.c
index a418b7e684..33d95e5574 100644
--- a/drivers/ml/cnxk/cnxk_ml_io.c
+++ b/drivers/ml/cnxk/cnxk_ml_io.c
@@ -2,6 +2,7 @@
  * Copyright (c) 2023 Marvell.
  */
 
+#include <rte_memcpy.h>
 #include <rte_mldev.h>
 
 #include <mldev_utils.h>
diff --git a/drivers/ml/cnxk/tvmrt_ml_ops.c b/drivers/ml/cnxk/tvmrt_ml_ops.c
index f6b3a51c51..01493077bb 100644
--- a/drivers/ml/cnxk/tvmrt_ml_ops.c
+++ b/drivers/ml/cnxk/tvmrt_ml_ops.c
@@ -16,6 +16,7 @@
 
 #include <rte_common.h>
 #include <rte_cycles.h>
+#include <rte_memcpy.h>
 #include <rte_mldev.h>
 #include <rte_mldev_pmd.h>
 
diff --git a/drivers/regex/mlx5/mlx5_rxp.c b/drivers/regex/mlx5/mlx5_rxp.c
index b865c08b53..42aa82d62a 100644
--- a/drivers/regex/mlx5/mlx5_rxp.c
+++ b/drivers/regex/mlx5/mlx5_rxp.c
@@ -5,6 +5,7 @@
 #include <rte_log.h>
 #include <rte_errno.h>
 #include <rte_malloc.h>
+#include <rte_memcpy.h>
 #include <rte_regexdev.h>
 #include <rte_regexdev_core.h>
 #include <rte_regexdev_driver.h>
-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.