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 7FFCB43C12; Fri, 1 Mar 2024 18:23:05 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 87822434A5; Fri, 1 Mar 2024 18:18:22 +0100 (CET) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) by mails.dpdk.org (Postfix) with ESMTP id E27A04341D for ; Fri, 1 Mar 2024 18:17:55 +0100 (CET) Received: by mail-pl1-f181.google.com with SMTP id d9443c01a7336-1dcab44747bso21666925ad.1 for ; Fri, 01 Mar 2024 09:17:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313475; x=1709918275; 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=m/DoatI4kn04wGFIZDaaJOx5saI4fml+dnlAmlFm6ms=; b=KF9aXDpeDJBAFas8MyuuxbniNInLvjfEilOixo5J29bU6ZnDjPjyoZdkCOtYQzFnMT CN/6qx8XvFWXN4ODJYoaCdkXKJp4DqkjqzfjKPCjTlhyj/DKnpYd5r/3Xia9HWsYSKaz M7fHve/Nn52fthwiw+afneG/Vprag15yTzka3EPTpz/CycOSQ67Rm7kZZ+7snMKcUR3C k6BpdiJlFlBR8enzxK4F6idAHJVbH2ex2cGXWnZuk4W1m640JW1qkZqMDhw7yZAxV0+D L8EqefoDDEeer25iK8otA+v5YxqKZTeJSzG8VBhI2RYbxQ7O+u3lA8IvJNx1GzuENH1h AY7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313475; x=1709918275; 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=m/DoatI4kn04wGFIZDaaJOx5saI4fml+dnlAmlFm6ms=; b=uHR2aD9hgSJFPemiHus4iDN4QvUqNVAJHg0ZJeEhuJkws275ZEWeoLvQLo7uqMSIgu 48P5G5mR71cZOebQYCOZGqONIfw4AKGsxuntzNkYyVHGmC4LfOaDhz5sVoOJ50Y+tnrT fHVHh2Nz24bryhFuMO5ZQ4zcdgQiFv328JQj9vNFBRj6pkwKtn22Bh+3jR1ESW8puhQw x6fVgcUE/ig+pKAAkRaeSsEbUQ/EgfpoWbHF4GkVfgxsRizIqtZlSSpyjk/Zne7oJUS9 LItoaGW9zH0wNCWwYU5V6hRMURxn/gUU2RsQyfrIauPz7K+orHSBs1hLFscX7EjOrsEP JikA== X-Gm-Message-State: AOJu0Yzg7pXN91+q16PBlYfCuhCa6Ryvzdy+nABJxCNLQ/PotDW2g4xU CQWAfjOLqmIbSqjIelNDruJymq2IaJ9wbugnDUVwAN6pGjZQQMqvmpZk9fDuXqeDoesoykOCt4F z4+LULQ== X-Google-Smtp-Source: AGHT+IFVoOUuHuIZR8y0Ca/rZF5AmDHf/IT0tZ4jQ/cJqpkNNGn0MAh2+8AVBrQWtKAQ6ucISXK02Q== X-Received: by 2002:a17:903:496:b0:1d9:d341:b150 with SMTP id jj22-20020a170903049600b001d9d341b150mr2076820plb.40.1709313475158; Fri, 01 Mar 2024 09:17:55 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id j14-20020a170902da8e00b001dc8d6a9d40sm3695764plx.144.2024.03.01.09.17.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:54 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v2 49/71] mempool/dpaa2: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:45 -0800 Message-ID: <20240301171707.95242-50-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240301171707.95242-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240301171707.95242-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/dpaa2/dpaa2_hw_mempool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c index 4c9245cb814c..8899c0f8e683 100644 --- a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c +++ b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c @@ -125,8 +125,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