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 B866F43BAE; Fri, 1 Mar 2024 00:06:16 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C6C1043401; Fri, 1 Mar 2024 00:01:41 +0100 (CET) Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) by mails.dpdk.org (Postfix) with ESMTP id 3E15142DBD for ; Fri, 1 Mar 2024 00:00:42 +0100 (CET) Received: by mail-pj1-f51.google.com with SMTP id 98e67ed59e1d1-29aa8c4710bso1170722a91.1 for ; Thu, 29 Feb 2024 15:00:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1709247641; x=1709852441; 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=MkUNJtSoIYYAMgTw+Jm6s7CNgW9axur4RCVJ0m1KmQU=; b=0WFii2uGnjadR6v4U4GZHBs4Zs18003aHzxJZMBtGmtc54i/C7GWS0GduiZuwy1EBU QpPyRHl8Kh5KagNXZZhIEVpvoMyKXvYyspM3FagdgCy3U+10HWCR8oboX1hpkAAa1dRl l0NRiNhnZQ19kaZmE8m2MoWMOrp//vg22pVdATMMpUMZasltzta2S6w256OPimnr9Cc8 qJYzuU1sWuQCXIxl5x8WKT8AEn0yFAEazIpN8eQ8huzWkXCVyAE/RK0qBNGwM38Fjrww 5/+5bZ9puJxqpkZMlp7P43P7CsgR6Id3nHTf3RQXbYja1uS5mN3xqVEqhDrq6vj7d8DL m/Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709247641; x=1709852441; 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=MkUNJtSoIYYAMgTw+Jm6s7CNgW9axur4RCVJ0m1KmQU=; b=kJ+MF43BLsa6Inv7yfjQ23hLSO3hjkhfQo3oE8Z3axg6WdgLC1/N6riLywjpXYhUzc 9Qv8bpURna02l+c7I49OCT+0MTc/UIFdw7B86hZ8hJKb0dFbCmWwKJjHHR4NRn3HC+Tz 8onSDk+mqw3Ii25gfWL4XjEwHYayMHWHipgfO5mBdaBT7wlErwfWZMUu1sGnwprR76jf 7UsnRnUjwQX3JdkN4nb3NL22ytfZrtTmguMN0Tmj5B+xsAdhNIJ4vUfRI508ATOfDHw5 gVCPrHcQAcMmswHa1YRHr5vVSRSvgyfKThBMfpg9oJBbdCkxZo3t5SX9mPv6PS852CxU 9Gkg== X-Gm-Message-State: AOJu0Yz6NkP5Q+Iw9Gu46Lv11a9vto1JQpvLBJYc4ifxFELIpHGP4Qo+ MHLDcINHR7t52SgmIBWRpNndco6tC3JA3eIMgk0tkuqqjwZ3ZwPnQKjUZHg5DQ9NIC1rlloUCUV C X-Google-Smtp-Source: AGHT+IF/OXDzQzeOy9LLmpZLE9hJ1o6/jixVELJwUJF+M6Vt7V2WPwTxepzB7J/JmUWp29HJc/Y6fg== X-Received: by 2002:a17:90b:1084:b0:29a:525f:4c5 with SMTP id gj4-20020a17090b108400b0029a525f04c5mr503379pjb.12.1709247641293; Thu, 29 Feb 2024 15:00:41 -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.15.00.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 15:00:40 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Hemant Agrawal , Sachin Saxena Subject: [PATCH 49/71] mempool/dpaa2: replace use of fixed size rte_memcpy Date: Thu, 29 Feb 2024 14:58:36 -0800 Message-ID: <20240229225936.483472-50-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 --- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c index 4c9245cb814c..8899c0f8e683 100644 --- a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c +++ b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c @@ -125,8 +125,8 @@ rte_hw_mbuf_create_pool(struct rte_mempool *mp) rte_dpaa2_bpid_info[bpid].bp_list = bp_list; rte_dpaa2_bpid_info[bpid].bpid = bpid; - rte_memcpy(bp_info, (void *)&rte_dpaa2_bpid_info[bpid], - sizeof(struct dpaa2_bp_info)); + memcpy(bp_info, (void *)&rte_dpaa2_bpid_info[bpid], + sizeof(struct dpaa2_bp_info)); mp->pool_data = (void *)bp_info; DPAA2_MEMPOOL_DEBUG("BP List created for bpid =%d", dpbp_attr.bpid); -- 2.43.0