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 8E94A43C12; Fri, 1 Mar 2024 18:17:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 66566432CC; Fri, 1 Mar 2024 18:17:22 +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 BB98B42FE9 for ; Fri, 1 Mar 2024 18:17:18 +0100 (CET) Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1d7232dcb3eso18698355ad.2 for ; Fri, 01 Mar 2024 09:17:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313438; x=1709918238; 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=EFwKhKzbWxIKE4LKzTUwAw7ItEgO/nVUD+Tiqa1uL1U=; b=dG2A/CG13UYg5kXcWRVYYJeZlJSQBF7eimtwimtTdiV99hfBTUxo+p/Gx+rPr6OT4d NB0Jjd4ZUU2gwhFz5ho456CsfzYiHXlLe6A7UltcOs9+zY7dZeD/ORpLdYyktroqKCI3 XM0Z8GxxOWoufBczcV3CYqzizDf/6PyFvNYHle1m/bfrov9nVXAgI0AYltDI4PLz4PTr f6tHC0pGaNbokYX3dN+/h0MwnapJepbhcX2lgOsjndn9Xu1FhB4orl7AzU8VKDS5Ux1S MX2pCZ+ChPJFa4tEL7mS0gUD+OEm9vohnRY/CGvSzcrPteZgh8uTTfVcsL7kGH3bWb3e kpsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313438; x=1709918238; 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=EFwKhKzbWxIKE4LKzTUwAw7ItEgO/nVUD+Tiqa1uL1U=; b=Nbot81cZ9zCAJfwDwimOTDT3qv9Ge4LXiUv/cigQEh4/Pd/cGkryGT6bF02wxee5NN WLW8ljRXqDmBQ6g9G7IHHfOkM07Il46/5i9G597mJgqGKErmJJwv5T1tMU32QzUcSsx/ n0QM+P8KA/UjeJ2LQuXAH9H9NPRD0ETE2wnFsdIFSUY34fwpWuCpUhZ72J37bN7aMNjt rfCoDsRFJdDF3sH/SnhmBpitk+2JO4L/69IgadNpjm8Fr7wd2e1y6UufgYG2hJ6ML7KM mo7nxPLRgMRlq+JT59DTGmm37BTm2/ZFPv07vuUWIftYmI5B5BlfCasQ/Va9sD1fa0eO unBQ== X-Gm-Message-State: AOJu0YxHszOcy+3ydK/nRBHMNuKM4rv2viVUEQ14/yTLBssjIHkTPCMk IuGW7brn7fe4IPeotFRRBcRCgTdio3jXr0Drn3kmygwgthIHt4zOa5xgFYodHTRb21fzgxfsPuy mi0HxtA== X-Google-Smtp-Source: AGHT+IGwsQZawbNWAf3WnPd/LldWmFALxsL8wmJ0wTGXZUfVfA7uuq2A39JdqUBwRkSZBU9BJWquAA== X-Received: by 2002:a17:902:d4cd:b0:1db:def5:17f8 with SMTP id o13-20020a170902d4cd00b001dbdef517f8mr2528932plg.9.1709313437992; Fri, 01 Mar 2024 09:17:17 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:17 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 02/71] eal: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:14:58 -0800 Message-ID: <20240301171707.95242-3-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 --- 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 e541f0793964..07bfaffdac76 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