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 B00AF43DC8; Tue, 2 Apr 2024 23:58:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4666140EE1; Tue, 2 Apr 2024 23:56:16 +0200 (CEST) Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by mails.dpdk.org (Postfix) with ESMTP id 7816B40C35 for ; Tue, 2 Apr 2024 23:56:01 +0200 (CEST) Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-1e2498b4e6cso19671235ad.2 for ; Tue, 02 Apr 2024 14:56:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712094961; x=1712699761; 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=HOFMv3rae64v2632uTlZ8wlL6g7UZuKEIgi3p4TpvbbGKHGVpjBOScSq1bdP55Eqr9 YvlyQTwydu4EFQJNjzSnymMXrdMKqyYbS8jTGTZw2imLqqD2LMttZLQAQ+LiRh5HWY1I T35YYGk1+Dkhx4T2m/tfB39E9D03ITX2yK6OnPhGVAvHHUheeC6JgYgD0cBzz04/C0+h rmirFrWZmN9xJFdOqp1oPDYcaJFPiYYAr7bCe/jnTujtFuLisdWAM2DtK3VogpXTn7ms xgqcbSBzjtk9O2A1Qjf6beCy0at0GnOWoNqhf5SH5oLg4Jqkl3OqreyVdx0wj19yRkMH FAIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712094961; x=1712699761; 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=JrC8Y8llwjNYcsXOyeZHpnR/FH07y7zH7FUqn2gOgfSZZKHZvOvZwEZPHOaxmkZE0H EdzWl7vuwTOWvMfkge7RdirotpY3T4A55gSXoyqUpVHV/zPNfTQfsP/hhOraN9mL6XLl s+7rcHuzPDezerS6IgmNH9o/x6PBY+PxB4rT0axH/Vj9cfCM5DoJpRN/qmILhALZiZRc KAkS/qn7li6ZfD+wc2+0w4S/vOKs41i9EBLgx3zycm/QilN6AUdGkRHp7BqbgXnukQJG qK/BTr/w9CBLu4iuCl9r38a3lbMcxKnfY0zLwu2iweH8b3SB3pNV+p5QuW1lLQFhqEbd 4NUw== X-Gm-Message-State: AOJu0YyKqtIx9r2Yd1Y5OH4WlWfd2PfPbYYtUyE3QFDbvbWslcmMRwXT Nnj/SJ1v7JaS+xBBgpCceLfmtlCOOfoRWIfPA0QE+TpmnAyW+WLOaiW3/19hjFAROGvVhJZuRl1 icPE= X-Google-Smtp-Source: AGHT+IE2K+QtY2YlQ1+ccR6XutGt5aEOLjJar9iM5XSQyNJTf8lyJWq4y/SZd4fll7djZ4qoEGvwpQ== X-Received: by 2002:a17:902:eb8f:b0:1e2:7788:8a34 with SMTP id q15-20020a170902eb8f00b001e277888a34mr2531593plg.38.1712094960679; Tue, 02 Apr 2024 14:56:00 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id x15-20020a170902820f00b001dddf29b6e8sm11609381pln.299.2024.04.02.14.56.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:56:00 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v3 22/30] mempool: replace use of fixed size rte_memcpy Date: Tue, 2 Apr 2024 14:50:38 -0700 Message-ID: <20240402215502.278838-23-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402215502.278838-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240402215502.278838-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