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 532EA43C12; Fri, 1 Mar 2024 18:24:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6690F434E4; Fri, 1 Mar 2024 18:18:36 +0100 (CET) Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) by mails.dpdk.org (Postfix) with ESMTP id 1F32F43258 for ; Fri, 1 Mar 2024 18:18:05 +0100 (CET) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1dcc7f4717fso23227265ad.0 for ; Fri, 01 Mar 2024 09:18:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313484; x=1709918284; 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=p57vwjpC1nEw57Bc54ETG2YPCxde0BlfQ9/7xhFmVps=; b=LmvHiB8pmJNcHTEyrx4ZW2LAAMGcW7gATw6A4a+BBQ7tcd6RS0kE7MNv9XFwwselO+ TpC5Y3h1Cn41rW4e+kbeTEePVmbUFC2xDrcZ7UmAFl6STw995k6PyTae88Lzbga8NzIt uJapEIZG6u8STaEVSwOLHiixSZSOAt8DO5zqhZ5mSE5QjaSopH/LnkmMpXOG72fiBNIC 2Ges0wPnCsUClP8H51tX+LHqthkukgIhsTwqfkVLa2HIRHn0xscIL1j4Ew6zZchpH+5W bFbiTZCKUsZmt3XUe7fKQKFKKitDo90p2VURunJ6DyHFvF3MrHLnYsEDqTbrgsHuAr0f lf5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313484; x=1709918284; 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=p57vwjpC1nEw57Bc54ETG2YPCxde0BlfQ9/7xhFmVps=; b=NSyA1BpjJ2X/HQLCGeE9TUB+C+bpo5lZByQJUKlMVlZb726WZMOnHdo3hIoynJRkGT FxWEPsFn6hsmqgKcIcXD7cHpBRkKq3TO2xH8JnrXEIZ/tnec4XVhc7akkTf58Gpuqcaj b59Fv+HwKboa9zPFDkIm1zv8IhLlN6xe5mwnDydS827MupAbhB6sIWsVHq4hA7gqlKsZ c4LoxfcOV7wLl2bWJRMe43/jot3IqCtsvE47AyG5LhHmjVCAFgc7fVDJzfIg1/j8ii89 RuGR9lgglV90zWKcBMpsSOqxcoTqw5wNJPuitGweAz6YaYZasPaob8HIeE9yQVjgOa3j 7Aeg== X-Gm-Message-State: AOJu0YzW/Puspq5BntbRJyvXc3zY23HBoYudVA+Nt3TTQ0LYtSG69Uix i5YLaC0XgpdDEypC7rPxNBvszTNsbUIhm8hwmvr8nJ0l3uGEmH0UBGeOuvABPvjK6T69kxmSjHz dVNLVHg== X-Google-Smtp-Source: AGHT+IGYrBFGRwu0hUxHn09Yb0hlkZmt7AQN4X8rrqgLox/Dugmd5GenPAPaec5sDNM4rV32rIjumA== X-Received: by 2002:a17:902:db04:b0:1d9:b099:6f9 with SMTP id m4-20020a170902db0400b001d9b09906f9mr3116274plx.45.1709313484399; Fri, 01 Mar 2024 09:18:04 -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.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:18:04 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH v2 60/71] net/dpaa2: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:56 -0800 Message-ID: <20240301171707.95242-61-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/net/dpaa2/base/dpaa2_hw_dpni.c | 1 - drivers/net/dpaa2/dpaa2_ethdev.c | 1 - drivers/net/dpaa2/dpaa2_recycle.c | 1 - drivers/net/dpaa2/dpaa2_rxtx.c | 1 - drivers/net/dpaa2/dpaa2_sparser.c | 1 - drivers/net/dpaa2/dpaa2_tm.c | 2 +- 6 files changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c index 4d33b51fead9..747fa4053276 100644 --- a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c +++ b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 97edc0042030..5799770fde5d 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/net/dpaa2/dpaa2_recycle.c b/drivers/net/dpaa2/dpaa2_recycle.c index fbfdf360d1ef..cda08a6cee69 100644 --- a/drivers/net/dpaa2/dpaa2_recycle.c +++ b/drivers/net/dpaa2/dpaa2_recycle.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index 23f7c4132d9e..b83015a94c62 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -11,7 +11,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/net/dpaa2/dpaa2_sparser.c b/drivers/net/dpaa2/dpaa2_sparser.c index 36a14526a5c5..e2976282bfee 100644 --- a/drivers/net/dpaa2/dpaa2_sparser.c +++ b/drivers/net/dpaa2/dpaa2_sparser.c @@ -5,7 +5,6 @@ #include #include #include -#include #include #include diff --git a/drivers/net/dpaa2/dpaa2_tm.c b/drivers/net/dpaa2/dpaa2_tm.c index 8fe5bfa013bb..1749b1be2295 100644 --- a/drivers/net/dpaa2/dpaa2_tm.c +++ b/drivers/net/dpaa2/dpaa2_tm.c @@ -324,7 +324,7 @@ dpaa2_shaper_profile_add(struct rte_eth_dev *dev, uint32_t shaper_profile_id, NULL, NULL); profile->id = shaper_profile_id; - rte_memcpy(&profile->params, params, sizeof(profile->params)); + memcpy(&profile->params, params, sizeof(profile->params)); LIST_INSERT_HEAD(&priv->shaper_profiles, profile, next); -- 2.43.0