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 21D3643DC8; Tue, 2 Apr 2024 23:55:57 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C2F55402E4; Tue, 2 Apr 2024 23:55:45 +0200 (CEST) Received: from mail-pg1-f173.google.com (mail-pg1-f173.google.com [209.85.215.173]) by mails.dpdk.org (Postfix) with ESMTP id EABAA4025D for ; Tue, 2 Apr 2024 23:55:42 +0200 (CEST) Received: by mail-pg1-f173.google.com with SMTP id 41be03b00d2f7-5ce07cf1e5dso3858295a12.2 for ; Tue, 02 Apr 2024 14:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1712094942; x=1712699742; 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=ltBQR5LCkkv4SFK6Kaz6qg/CdADKiS+1j5rl+XPCDsfPRPbGG5AIWdJ6/c2pUJwQ9W 8pmOioVU6cQSd3mMC4fj5VpvJz0zfEQZPSG5KJ8BoVLBoBsqI8qCJDJNJWh2cQBXridp zgHooHguR7b2MwyHJA2SPed1MuG93i+5t/+SbqMv9UlMPe+wjSifkMUseG2fKAxix7ps dbLlZRmodriQnLeV8E+OxfDt5hOq0jgdOFB+lS2S0d2Qeb8DJtmRb5wFtd92cpZ0ZUGq NOgFlouKwKuuWKCNp6vZoyIA4KA65mwoyQZiagUSOlk5LYogL3O81H2iAgJnIDrwyTTy tIpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712094942; x=1712699742; 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=fFxJ+yVE4r3VGzsFY7/nw7crmmbR/AW7PdzOxUBB0vkd5l+JhSHpxYSojm60aBc9jM 8KZVU+dxPBieoy3gDDPhTglYSKuTB8mLfUN1ku7R4GpQI7oRepFw8HMmA0ZfpmdjKKaK tXtf3lx6wV4S6CPFQhGvqFRrmYp9xAkc9uSbw2fTw0iuKQOaHNrAax/nq8fkSPk5o/H+ 71Cyw+Nrlo/P0qE8rqMVllzZW/zO4TFijIa7G5L6dIRrL1PCcLRfhM0sKHjVonJ1AL5K QZVm5tOlGWBRWQLuHcePnNc6P4HQeXMdb1FQGO/5shjJtS8i0OBs0QRJRlDogglbHKJN ZHag== X-Gm-Message-State: AOJu0Yw5O0vXgkWDI00c8M5J+i2adGFbW6fPOKUI9pGoaLFVO7Bm9qNS HdD4TwHk0shjWzPxSz6K7gzC1f4Se3PGK3kH7MP2fhkCYht+SEzPBYHB4gao6dYwBitNPjMCBCe 9 X-Google-Smtp-Source: AGHT+IFQZnNNjIk9IQpsLkNebm7MuH3WpAI36uHMQh7IWU7LEO1sXH077PCyzeBjqQZNn4yIS/QgSg== X-Received: by 2002:a05:6a20:1593:b0:1a3:dc6f:f412 with SMTP id h19-20020a056a20159300b001a3dc6ff412mr14897891pzj.48.1712094941974; Tue, 02 Apr 2024 14:55:41 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id x15-20020a170902820f00b001dddf29b6e8sm11609381pln.299.2024.04.02.14.55.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 14:55:41 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v3 02/30] eal: replace use of fixed size rte_memcpy Date: Tue, 2 Apr 2024 14:50:18 -0700 Message-ID: <20240402215502.278838-3-stephen@networkplumber.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402215502.278838-1-stephen@networkplumber.org> References: <20240229225936.483472-1-stephen@networkplumber.org> <20240402215502.278838-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