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 C519E44093; Wed, 22 May 2024 05:30:42 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 870A64025C; Wed, 22 May 2024 05:30:31 +0200 (CEST) Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by mails.dpdk.org (Postfix) with ESMTP id F14904025C for ; Wed, 22 May 2024 05:30:27 +0200 (CEST) Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1eecc71311eso6796475ad.3 for ; Tue, 21 May 2024 20:30:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1716348627; x=1716953427; 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=Y7jqDq9itjOlJ+//msrHAnc/VdUKNM16cIApE4/K90U=; b=EVTSV3+8zQk1uP9j/hjm6aNOIVu5EgAcUJjAo8KUvWcv3afBOJyJ10jveO7QPknNls bJcXFVOWFT9hBbUZ9DogzjifBw5CEhbQ36KEz4iHZ8Cri6Zifjz75EMbpKFmwTaIerov wF0jpQ/S9hYd5/FHZbTkV1u1nUeIMBo9T4Lhr/Qennh/bvVgpGIiRrpCoobLx5IK3sTh 6gxDvkEOkiJiyM+tBrW7TqJ/9Bao141q0KLUvDtLwekxkkV7T9EZirld9seAXb+EQFWw xtgcoyqQ+E1Lh3KRmjo5PwW5E+swweJMyXghA1brgbMCGjkZZ089UJll/+xbR7CLRWsK oJ9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716348627; x=1716953427; 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=Y7jqDq9itjOlJ+//msrHAnc/VdUKNM16cIApE4/K90U=; b=WNQiH6oqpSIc46TvUEyNG4JtqsokluieOfTJneV5WXNJjYc5q9wyWZ4zvb7oeY/VXe uv4BxczhYwGK8ovuEFulYusFkFAQUzqwt9glQercqhjCxxPTicBT3ct7SWdY5iO8Mx/i vpbyYWQNdAaSWwdoZGLJGoz0L4Rhx+3wnDVcIOEcX8abAyxwHQFsNHfM3Z4VV5zmhfh5 dNopFZWyex17HooTmJHOgyNxbipaBgXodqqzBd0gStuLabSyTLZK5+8ypnUdKa4d3qG4 lrEOHRt72cQIBm583umqhu2Uf9phdlBskavDHpGmdaX/dM3/zxdkOdu/SuxQj7HaTSeQ o3sQ== X-Gm-Message-State: AOJu0Yz1WJ0t5Nx6yucrHAgdWQtFHNncJ/7natfv2vEO34qW+BtViQko jXNPF2/jIZR5KxCManRTjFvSSJ6CuMnmiFGo6dS37IDlrp9Ky3zpxO6XchBU+k+Hp+Rcu0rHGGq kZaQ= X-Google-Smtp-Source: AGHT+IF6QL2NBB5R52e16cf7QGn5YbXvxc8w2lyYjAdEXDLfrXIbcyYDGrReaaNiQtpaDESmQigrig== X-Received: by 2002:a17:902:ce91:b0:1f2:fd49:9fcc with SMTP id d9443c01a7336-1f31c990bbbmr11111465ad.34.1716348627116; Tue, 21 May 2024 20:30:27 -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.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 20:30:26 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Tyler Retzlaff Subject: [PATCH v5 02/32] eal: replace use of fixed size rte_memcpy Date: Tue, 21 May 2024 20:27:29 -0700 Message-ID: <20240522033009.143100-3-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 --- lib/eal/common/eal_common_options.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/eal/common/eal_common_options.c b/lib/eal/common/eal_common_options.c index e541f07939..07bfaffdac 100644 --- a/lib/eal/common/eal_common_options.c +++ b/lib/eal/common/eal_common_options.c @@ -30,7 +30,6 @@ #include #include #include -#include #ifndef RTE_EXEC_ENV_WINDOWS #include #endif @@ -1253,7 +1252,7 @@ eal_parse_lcores(const char *lcores) /* without '@', by default using lcore_set as cpuset */ if (*lcores != '@') - rte_memcpy(&cpuset, &lcore_set, sizeof(cpuset)); + memcpy(&cpuset, &lcore_set, sizeof(cpuset)); set_count = CPU_COUNT(&lcore_set); /* start to update lcore_set */ @@ -1275,8 +1274,8 @@ eal_parse_lcores(const char *lcores) if (check_cpuset(&cpuset) < 0) goto err; - rte_memcpy(&lcore_config[idx].cpuset, &cpuset, - sizeof(rte_cpuset_t)); + memcpy(&lcore_config[idx].cpuset, &cpuset, + sizeof(rte_cpuset_t)); } /* some cores from the lcore_set can't be handled by EAL */ -- 2.43.0