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 9A1EC43C12; Fri, 1 Mar 2024 18:18:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7794743320; Fri, 1 Mar 2024 18:17:26 +0100 (CET) Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mails.dpdk.org (Postfix) with ESMTP id 3BE3E43281 for ; Fri, 1 Mar 2024 18:17:21 +0100 (CET) Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1dcb3e6ff3fso8180295ad.2 for ; Fri, 01 Mar 2024 09:17:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709313440; x=1709918240; 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=C7kfBD3djBUDJJFpAGOmlkIh8y6zpuH5vxwEnCxBnrw=; b=nKX/0GFFK2/iCShax6kh54DlW34YPgunHNk5mDVbXXah9wT1x9m8y0kVDXIEk3w3Xz MBIDuB05Cm3WmGCUJt6qJkAYWynRdEjBjxUY1FnBLlER+sy4gSDL4LNAFQmN0h+5xg9/ iI0swjgHr1TQMujKoZ/5zuf5qWRA5w9vW4PG21IeQlHsQXf9SPuxC9YDzpUY6zrY7w44 y4R+o756ZJtz18zZBjTJyG5fKko1zijCbUveO7bNCLZi7o7Q2I3t74DpM/u6Rpq7fnkf tG8EnEuX+UVeRS/L9H5U/ZE0wq3tCbKynBboDBus3d8yXUQ7LVwzkN70IVjkt1YvIyqt JkUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709313440; x=1709918240; 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=C7kfBD3djBUDJJFpAGOmlkIh8y6zpuH5vxwEnCxBnrw=; b=r//FxwHYRqb7Rvt7KCUc/zzedvYWxJtmBQDDlxZolhzOzJ1wu5tVnpwMFofksvANFr cUdY2xzQR5BqSqPX1XJbuTMCL6DVeMdPzqWGP6sdbWOjrqwpVHf9hFcKK8OFItvqYMnB L8aqdTwAKMY7FmIYMtXM/Xv3+9FUrLAJr9DMmBDgXtHmJW5R7S7Ei6U5pExfNbI4wlsy y9mk2L2wXXNDIVsHRb71wh6C8SFibIHFSXWPJ98pcvCKk+80cg/fZhgR90dLuEZivIHD 9rUy4MDB5o2wGGOT2qG3osUYgt8Eqg2/GnkFaCihWtVwh6xSh0nZkicE/hD+EllbexH0 o+6w== X-Gm-Message-State: AOJu0YxNTaj47umEjDEFX1T9abYhgf8/ypZBmqxecxkMQkOe7pMXLuT3 FH1TDq+OtTtvMq04o/UGpYpmst1lB8VTAAqSAOZDZ+e/76iPdUevCAlGP/8mjObYxwyhOlhUaO8 C1HeL8w== X-Google-Smtp-Source: AGHT+IFqjCotHWpYu2h+dro92B/slufMgLm30j4y+jFuihIiLkNbafVXIv3I9KQUu42zPZpEOuQjpw== X-Received: by 2002:a17:903:2b03:b0:1dc:7f98:d9bf with SMTP id mc3-20020a1709032b0300b001dc7f98d9bfmr3000077plb.59.1709313440446; Fri, 01 Mar 2024 09:17:20 -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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 09:17:20 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Akhil Goyal , Fan Zhang Subject: [PATCH v2 05/71] cryptodev: replace use of fixed size rte_memcpy Date: Fri, 1 Mar 2024 09:15:01 -0800 Message-ID: <20240301171707.95242-6-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/cryptodev/rte_cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cryptodev/rte_cryptodev.c b/lib/cryptodev/rte_cryptodev.c index 886eb7adc4a9..1377777525dc 100644 --- a/lib/cryptodev/rte_cryptodev.c +++ b/lib/cryptodev/rte_cryptodev.c @@ -2854,7 +2854,7 @@ crypto_caps_array(struct rte_tel_data *d, while ((dev_caps = &capabilities[i++])->op != RTE_CRYPTO_OP_TYPE_UNDEFINED) { memset(&caps_val, 0, CRYPTO_CAPS_SZ * sizeof(caps_val[0])); - rte_memcpy(caps_val, dev_caps, sizeof(capabilities[0])); + memcpy(caps_val, dev_caps, sizeof(capabilities[0])); for (j = 0; j < CRYPTO_CAPS_SZ; j++) rte_tel_data_add_array_uint(d, caps_val[j]); } -- 2.43.0