From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 4AB7443E0C; Fri, 5 Apr 2024 18:59:13 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C1791410D5; Fri, 5 Apr 2024 18:56:09 +0200 (CEST) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mails.dpdk.org (Postfix) with ESMTP id 1A3B840ED1 for ; Fri, 5 Apr 2024 18:56:04 +0200 (CEST) Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6ece8991654so2024272b3a.3 for ; Fri, 05 Apr 2024 09:56:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712336163; x=1712940963; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hd6PR4HTQ6dXwXtRBhf/G6tcA8NMTwqnSGrx6zoaA4s=; b=aGXJ97G3La9z9Dq7PBUWUCUHxpz4FBqfK0/yFj+fBU/PqufI2xOLuNhg03AtdQsn2j ld0PC1jHSUwn3R2AV48AxnNnVrCGka2HueorXF9m2WGmxOpUrCz4nAkKUHxgRYKparFP CFisGqAnCXgeg9fgFSFULESlK7Z5sQgFou4iISyUNYo4wcHPlKRlxTMY0SlH6FYpFKCN S/lPOGNp1arQsL4tV02w0uUow1svO6e0hMenhCNIfL3yhbfLkrrKiMyxny8oF8G4TOuo 1E/IRh+Nb8x52CFfBOKECA+L8r+RfoaSi3hoxKDekDA6ZCY6FTk4uG+RvVET6Az+JnHR bX4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712336163; x=1712940963; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hd6PR4HTQ6dXwXtRBhf/G6tcA8NMTwqnSGrx6zoaA4s=; b=Oc9UMk26KqmfJuVlYh+jnqh1APrhXhKtDfDEj7lGbwuPn91XeD9D5RkysMbytNafog zMcTBYN7V///vRO1owXaJ8nIwwVjmIqmvSvKUegknf+lSJhYVAS6llE65i9aAR+N7il0 34cJZBSOvq2vlY4/eq0ycCIz7cxYSkdWFc/8Ye/LrjqoEXFPGq1lp7lNmAptItk0/b+T ETJqZwWfSFFyga+MC3biZqCCg7AZxI21zLyzMf/+VInmC7de0W+NM5uhxJAVndGrYAnb prmvTw3l/I4d7X4N7uG2X9QDNIrBCOqPT5BO+064njPOAZHhnrwKHu7ho9pAxInwIV5R tX4g== X-Gm-Message-State: AOJu0YzVQSfp0oAvZw6I6VGxzjfjllaK1TZGef/d0mNJxoKoQgzOOYh2 XruLd5jZi1NGE40+2ybHRSVDsk9enBVjVirpE3EgesZeiMiqd44RDQxr+TeTkNqQKKwgZiLXTnW 7+n7eNw== X-Google-Smtp-Source: AGHT+IEBfzsMlMceMmI/4OmikepRNe3A6Pr3ZSYECofR6DwUx0qLISVSAhqROqMazS7OFUD40qqk0w== X-Received: by 2002:a05:6a00:2d28:b0:6ea:b610:eaff with SMTP id fa40-20020a056a002d2800b006eab610eaffmr2569678pfb.21.1712336163348; Fri, 05 Apr 2024 09:56:03 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id c2-20020aa781c2000000b006e6c0f8ce1bsm1728555pfn.47.2024.04.05.09.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 09:56:02 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v4 22/30] mempool: replace use of fixed size rte_memcpy Date: Fri, 5 Apr 2024 09:53:33 -0700 Message-ID: <20240405165518.367503-23-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240405165518.367503-1-stephen@networkplumber.org> References: <20240403163432.437275-1-stephen@networkplumber.org> <20240405165518.367503-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Automatically generated by devtools/cocci/rte_memcpy.cocci Signed-off-by: Stephen Hemminger Acked-by: Hemant Agrawal --- drivers/mempool/dpaa/dpaa_mempool.c | 4 ++-- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/mempool/dpaa/dpaa_mempool.c b/drivers/mempool/dpaa/dpaa_mempool.c index 0b484b3d9c..f72b51b472 100644 --- a/drivers/mempool/dpaa/dpaa_mempool.c +++ b/drivers/mempool/dpaa/dpaa_mempool.c @@ -115,8 +115,8 @@ dpaa_mbuf_create_pool(struct rte_mempool *mp) return -ENOMEM; } - rte_memcpy(bp_info, (void *)&rte_dpaa_bpid_info[bpid], - sizeof(struct dpaa_bp_info)); + memcpy(bp_info, (void *)&rte_dpaa_bpid_info[bpid], + sizeof(struct dpaa_bp_info)); mp->pool_data = (void *)bp_info; DPAA_MEMPOOL_INFO("BMAN pool created for bpid =%d", bpid); diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c index 4c9245cb81..c711de30e8 100644 --- a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c +++ b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include #include @@ -125,8 +124,8 @@ rte_hw_mbuf_create_pool(struct rte_mempool *mp) rte_dpaa2_bpid_info[bpid].bp_list = bp_list; rte_dpaa2_bpid_info[bpid].bpid = bpid; - rte_memcpy(bp_info, (void *)&rte_dpaa2_bpid_info[bpid], - sizeof(struct dpaa2_bp_info)); + memcpy(bp_info, (void *)&rte_dpaa2_bpid_info[bpid], + sizeof(struct dpaa2_bp_info)); mp->pool_data = (void *)bp_info; DPAA2_MEMPOOL_DEBUG("BP List created for bpid =%d", dpbp_attr.bpid); -- 2.43.0