Automatically generated by devtools/cocci/rte_memcpy.cocci
Also, remove unnecessary includes of rte_memcpy.h

Signed-off-by: Stephen Hemminger <step...@networkplumber.org>
---
 drivers/common/idpf/idpf_common_device.c   |  4 ++--
 drivers/common/idpf/idpf_common_virtchnl.c | 10 ++++++----
 drivers/common/qat/qat_qp.c                | 10 ++++------
 drivers/compress/qat/qat_comp.c            |  8 ++++----
 4 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/drivers/common/idpf/idpf_common_device.c 
b/drivers/common/idpf/idpf_common_device.c
index 8403ed83f9..37c859f830 100644
--- a/drivers/common/idpf/idpf_common_device.c
+++ b/drivers/common/idpf/idpf_common_device.c
@@ -477,8 +477,8 @@ idpf_vport_init(struct idpf_vport *vport,
        vport->num_rx_q = vport_info->num_rx_q;
        vport->num_rx_bufq = vport_info->num_rx_bufq;
        vport->max_mtu = vport_info->max_mtu;
-       rte_memcpy(vport->default_mac_addr,
-                  vport_info->default_mac_addr, ETH_ALEN);
+       memcpy(vport->default_mac_addr, vport_info->default_mac_addr,
+              ETH_ALEN);
        vport->rss_algorithm = vport_info->rss_algorithm;
        vport->rss_key_size = RTE_MIN(IDPF_RSS_KEY_LEN,
                                      vport_info->rss_key_size);
diff --git a/drivers/common/idpf/idpf_common_virtchnl.c 
b/drivers/common/idpf/idpf_common_virtchnl.c
index c46ed50eb5..baabfeb216 100644
--- a/drivers/common/idpf/idpf_common_virtchnl.c
+++ b/drivers/common/idpf/idpf_common_virtchnl.c
@@ -290,7 +290,8 @@ idpf_vc_caps_get(struct idpf_adapter *adapter)
                return err;
        }
 
-       rte_memcpy(&adapter->caps, args.out_buffer, sizeof(struct 
virtchnl2_get_capabilities));
+       memcpy(&adapter->caps, args.out_buffer,
+              sizeof(struct virtchnl2_get_capabilities));
 
        return 0;
 }
@@ -327,7 +328,8 @@ idpf_vc_vport_create(struct idpf_vport *vport,
                return err;
        }
 
-       rte_memcpy(&(vport->vport_info.info), args.out_buffer, 
IDPF_DFLT_MBX_BUF_SIZE);
+       memcpy(&(vport->vport_info.info), args.out_buffer,
+              IDPF_DFLT_MBX_BUF_SIZE);
        return 0;
 }
 
@@ -383,7 +385,7 @@ idpf_vc_queue_grps_add(struct idpf_vport *vport,
                return err;
        }
 
-       rte_memcpy(p2p_queue_grps_out, args.out_buffer, IDPF_DFLT_MBX_BUF_SIZE);
+       memcpy(p2p_queue_grps_out, args.out_buffer, IDPF_DFLT_MBX_BUF_SIZE);
        return 0;
 }
 
@@ -922,7 +924,7 @@ idpf_vc_ptype_info_query(struct idpf_adapter *adapter,
        if (err != 0)
                DRV_LOG(ERR, "Failed to execute command of 
VIRTCHNL2_OP_GET_PTYPE_INFO");
 
-       rte_memcpy(recv_ptype_info, args.out_buffer, IDPF_DFLT_MBX_BUF_SIZE);
+       memcpy(recv_ptype_info, args.out_buffer, IDPF_DFLT_MBX_BUF_SIZE);
        return err;
 }
 
diff --git a/drivers/common/qat/qat_qp.c b/drivers/common/qat/qat_qp.c
index f95dd33375..0c30c4d8c1 100644
--- a/drivers/common/qat/qat_qp.c
+++ b/drivers/common/qat/qat_qp.c
@@ -871,9 +871,8 @@ qat_cq_get_fw_cipher_crc_cap(struct qat_qp *qp)
                return -EINVAL;
        }
 
-       rte_memcpy(src_data_addr,
-                       cipher_crc_cap_check_plaintext,
-                       sizeof(cipher_crc_cap_check_plaintext));
+       memcpy(src_data_addr, cipher_crc_cap_check_plaintext,
+              sizeof(cipher_crc_cap_check_plaintext));
 
        phy_src_addr = rte_mem_virt2iova(src_data_addr);
        if (phy_src_addr == 0 || phy_src_addr == RTE_BAD_IOVA) {
@@ -892,9 +891,8 @@ qat_cq_get_fw_cipher_crc_cap(struct qat_qp *qp)
        auth_param = (void *)((uint8_t *)cipher_param +
                        ICP_QAT_FW_HASH_REQUEST_PARAMETERS_OFFSET);
 
-       rte_memcpy(cipher_param->u.cipher_IV_array,
-                       cipher_crc_cap_check_iv,
-                       sizeof(cipher_crc_cap_check_iv));
+       memcpy(cipher_param->u.cipher_IV_array, cipher_crc_cap_check_iv,
+              sizeof(cipher_crc_cap_check_iv));
 
        cipher_param->cipher_offset = cipher_crc_cap_check_cipher_offset;
        cipher_param->cipher_length =
diff --git a/drivers/compress/qat/qat_comp.c b/drivers/compress/qat/qat_comp.c
index 559948a46a..5bcbefe395 100644
--- a/drivers/compress/qat/qat_comp.c
+++ b/drivers/compress/qat/qat_comp.c
@@ -375,7 +375,7 @@ qat_comp_build_multiple_requests(void *in_op, struct qat_qp 
*qp,
        QAT_DP_LOG(DEBUG, "op %p, parent_cookie %p", op, parent_cookie);
 
        /* copy original op to the local variable for restoring later */
-       rte_memcpy(&op_backup, op, sizeof(op_backup));
+       memcpy(&op_backup, op, sizeof(op_backup));
 
        parent_cookie->nb_child_responses = 0;
        parent_cookie->nb_children = 0;
@@ -401,7 +401,7 @@ qat_comp_build_multiple_requests(void *in_op, struct qat_qp 
*qp,
        }
 
        /* prepare local dst mbuf */
-       rte_memcpy(&dst_mbuf, op->m_dst, sizeof(dst_mbuf));
+       memcpy(&dst_mbuf, op->m_dst, sizeof(dst_mbuf));
        rte_pktmbuf_reset(&dst_mbuf);
        dst_mbuf.buf_len = dst_data_size;
        dst_mbuf.data_len = dst_data_size;
@@ -457,7 +457,7 @@ qat_comp_build_multiple_requests(void *in_op, struct qat_qp 
*qp,
                if (ret < 0) {
                        QAT_DP_LOG(WARNING, "Failed to build child descriptor");
                        /* restore op and clear cookie */
-                       rte_memcpy(op, &op_backup, sizeof(op_backup));
+                       memcpy(op, &op_backup, sizeof(op_backup));
                        parent_cookie->split_op = 0;
                        parent_cookie->nb_children = 0;
                        return ret;
@@ -468,7 +468,7 @@ qat_comp_build_multiple_requests(void *in_op, struct qat_qp 
*qp,
        }
 
        /* restore backed up original op */
-       rte_memcpy(op, &op_backup, sizeof(op_backup));
+       memcpy(op, &op_backup, sizeof(op_backup));
 
        if (nb_descr != num_descriptors_built)
                QAT_DP_LOG(ERR, "split op. expected %d, built %d",
-- 
2.43.0

Reply via email to