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 D862E43BAE; Fri, 1 Mar 2024 00:00:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 12572427D9; Fri, 1 Mar 2024 00:00:04 +0100 (CET) Received: from mail-pj1-f41.google.com (mail-pj1-f41.google.com [209.85.216.41]) by mails.dpdk.org (Postfix) with ESMTP id 03E0242DBD for ; Fri, 1 Mar 2024 00:00:00 +0100 (CET) Received: by mail-pj1-f41.google.com with SMTP id 98e67ed59e1d1-299b92948a6so1023436a91.3 for ; Thu, 29 Feb 2024 14:59:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247599; x=1709852399; 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=PTN08smjFOGHfWyfaPAkVl/V19xmw+U8Krd10OVNaBQDwdQCxMhYUXno+4wMk7jMpr jbljlKYLiNle2XM0aTQF48/3aOuFeGP25J4kYonLkmHTvfOIuyilkDperSefVqy8IdL4 U+7xNft8gV7RrnOXjDsI55krUt8caC7gsLWO8hhWsUuXZi8+eS0BDrPy47sEKSLDZVFU vC/qC+ZnjHkeWaG+zH4GF15+dJr6swbw6VK6s8BR6OKDGzQFMIap/WVqH5G9o2Lsp8xe 4ce9wrp1TNwux+fP+Q2/fydM3tRlFnzeINF7go3Op2LOyp+x7rEewphAja+VKD4RLhLL rpeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247599; x=1709852399; 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=NL+UiSerqJAqEnGO4QUpbBjHThY6pdStPM76ZSimQjlDVFvUxxXiG3KOHBXqmpaA7i dXqhBc7C/7L8wziulJTT0lgt0rVK++M39BLZdnAEq5cHIdOe5ZujULAV/8fEZr/Wp7v7 ijDWH6sAW4PqoxBVhO4NYA5qbFY05uyV+0KwoVrSDvRpJrmmshcBOVbNF2kKB01DHbhx RmDI1QkOqIm9Ipk7F3W/sFB1KK5zQllCiIWH6ciSIdXkoHxuG0rephIIE6BhUAVDAzE6 pzVQnm3e4hzx5uEwdVd07xzKN7wvGk9guoDyh+OjNy2uU5ifYrf1B0Ueo/Hsw1iTEYTa paAw== X-Gm-Message-State: AOJu0YzzZk43EmWj0HAZ3emb7StZ8vb5/s/ZutQzap0/pVxoiP8yom4o DOwSjQyo+cNvwiZp1/sTHA+kRNai1no/HW+1OaKI+zyF2siyar/CZ0M3pju1CLyJvt70Dk15yU7 K X-Google-Smtp-Source: AGHT+IHV50NtfrEazGpFT4tWmWTB5Ig5+hPzfEshk6ZEJ9qpSdgyuUd/RrX6AeYwOvio74vexEqdyg== X-Received: by 2002:a17:90a:5986:b0:29a:e05f:3f55 with SMTP id l6-20020a17090a598600b0029ae05f3f55mr36163pji.2.1709247599205; Thu, 29 Feb 2024 14:59:59 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id l22-20020a17090b079600b0029a8e5355fcsm1965578pjz.53.2024.02.29.14.59.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 14:59:58 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 02/71] eal: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:57:49 -0800 Message-ID: <20240229225936.483472-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240229225936.483472-1-stephen@networkplumber.org> References: <20240229225936.483472-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