From patchwork Thu May 19 16:07:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fan Zhang X-Patchwork-Id: 111430 X-Patchwork-Delegate: maxime.coquelin@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6BA11A0503; Thu, 19 May 2022 18:09:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 491BB40222; Thu, 19 May 2022 18:09:05 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id C60F140156 for ; Thu, 19 May 2022 18:09:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652976544; x=1684512544; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=DRWeXZiU3BmZtxYwFbnIYj1cseVBCileP0OnG/P/JQM=; b=lN70/iKZwMIFy0iJBOQgGy7O+vMK0K2ks5bT4ACpRuvU9zVKV7oL9ZOG vGqDtw/rQmzeSjw2SCi0V8qyJXTO2hn4epG4XrgPy5veYPp80oAT0H+Z3 lxpwA35sKVjPgZNOB8GeO/fvhItXm92Wr4ijcxlI0RwKR1sXreXGH9AlK OJH7Ag5bd2bZ7iyyiGnX8G3hxMixrQt8jN6Igj3oisv0XVPkSrz4V7ngX LnDoNGQL/6oKVZ8QYLg/q8DEMiIbM23wwG2z3a5F8dZKvPjyMmx76SugG P1NbD3AkkkX/BIv2JDoJjankDuFYhu5smU/uln47Vnoq+PWJFxSRfpJDT A==; X-IronPort-AV: E=McAfee;i="6400,9594,10352"; a="335310434" X-IronPort-AV: E=Sophos;i="5.91,237,1647327600"; d="scan'208";a="335310434" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 May 2022 09:07:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,237,1647327600"; d="scan'208";a="661766796" Received: from silpixa00400885.ir.intel.com ([10.243.22.166]) by FMSMGA003.fm.intel.com with ESMTP; 19 May 2022 09:07:13 -0700 From: Fan Zhang To: dev@dpdk.org Cc: daxuex.gao@intel.com, maxime.coquelin@redhat.com, Fan Zhang Subject: [PATCH] vhost/crypto: fix failed compile Date: Thu, 19 May 2022 16:07:11 +0000 Message-Id: <20220519160711.159618-1-roy.fan.zhang@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 Fixes: 3c79609fda7c ("vhost/crypto: handle virtually non-contiguous buffers") Cc: roy.fan.zhang@intel.com This patch fixes the vhost crypto compile file on GCC12. Ref. https://bugs.dpdk.org/show_bug.cgi?id=1011 The fix involves replacing rte_memcpy to memcpy. Signed-off-by: Fan Zhang --- lib/vhost/vhost_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vhost/vhost_crypto.c b/lib/vhost/vhost_crypto.c index b1c0eb6a0f..278f990280 100644 --- a/lib/vhost/vhost_crypto.c +++ b/lib/vhost/vhost_crypto.c @@ -585,7 +585,7 @@ copy_data(void *dst_data, struct vhost_crypto_data_req *vc_req, if (unlikely(!src || !dlen)) return -1; - rte_memcpy((uint8_t *)data, src, dlen); + memcpy((uint8_t *)data, src, dlen); data += dlen; if (unlikely(dlen < to_copy)) {