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 0035C44093; Wed, 22 May 2024 05:32:50 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id F0F4B40EDB; Wed, 22 May 2024 05:30:58 +0200 (CEST) Received: from mail-pj1-f43.google.com (mail-pj1-f43.google.com [209.85.216.43]) by mails.dpdk.org (Postfix) with ESMTP id CE48040A89 for ; Wed, 22 May 2024 05:30:43 +0200 (CEST) Received: by mail-pj1-f43.google.com with SMTP id 98e67ed59e1d1-2b12b52fbe0so880079a91.0 for ; Tue, 21 May 2024 20:30:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348643; x=1716953443; 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=AjAmdydm42Si4JAFP35u2FdnvCtXLtAHkI7jbyxIeLYBugSPNJnI58HBNzNEow7Hfe ADbU64wNRPjuO4S9xefJ83irtaIgw6Q+osdDkIssenf0xT3QcwxYbucQvC9GWAtuUu0z D/pwBkJh+z4nkrLuS+GtkvhpOP7UeO4NjGMAAwT9BcsHoQIf3zF78y6Zy2Vvl5oF2lvV PDvYg2w35OyquPWb9ks1dXbqP1qHxi4riDhUP95gB+e1aKo6fJgKgzkgM7fRj+ic6huK B9PZeoO89yTpcChkffRta2m0doM/8LZ0b7XkBk+biJ2tMrMKtNhCZ9yy8uE1j+0lcv4T hAig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348643; x=1716953443; 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=JzFd+OSurGdt7hGzNAn8hHRBaDM0SDl3KnsqQRiHV0dY1BCQ4CU7t0MeOxRwhB0XbW Fw3OzYvZI75Aq8WZFB5Q6FtwRYcdmZJZ3i4EuLlvKvvhM1mka5j6ze3sJDiXI5XflamM bstg4lrfRcmz+XpSMtpxQXKnVJlsnXGGnBrJGVYoX52SnsB2LchjEk15HIjE5sQifHsB O/01ztGXe7eGV/3EN7YaLfWZCRN2tEIDWnrAkiX+TZyimtJPsUuTHJ68rAi0P9rPfJih 5AqeTmLybeS88379VYAVg3g1cc/zq9QGrzSh2SrDb8dhsIuzmLkvu769masmhBF8j0So B2SA== X-Gm-Message-State: AOJu0YxPZt7x6YjTJOEfK4KDum8HaYIAcFJ6u2+UeCqC7Lr0tAX5HXzg f/0Z0dtpwd29DR0+/bOngusTtETeDNn/A+TnRKEAFiPaJBHj/xkl2GdfcIHSeiPYzms03iSA9st +Vik= X-Google-Smtp-Source: AGHT+IGxGeCWFaE43Fg5bywzQOBvzXTdK+h2SQ5+gKtJgqR9lrZWMcz9TA9cRjwHhzdO2+rgJ1fc6Q== X-Received: by 2002:a17:90b:903:b0:2bd:77c9:c577 with SMTP id 98e67ed59e1d1-2bd9f5a1766mr1215722a91.32.1716348642954; Tue, 21 May 2024 20:30:42 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f323c70dafsm2264325ad.260.2024.05.21.20.30.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:42 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v5 20/32] mempool: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:47 -0700 Message-ID: <20240522033009.143100-21-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240522033009.143100-1-stephen@networkplumber.org> References: <20240403163432.437275-1-stephen@networkplumber.org> <20240522033009.143100-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