From nobody Thu May 16 12:25:24 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+89108+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+89108+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1650432595; cv=none; d=zohomail.com; s=zohoarc; b=IAgFljLtFfqezo4GqpqUkUsurmoAF3e0/AtVIBsm87pFxtXQdYk87EXV5oqsvBltA/mstZyR4txzEOKfY8XYR14MlLorreZP/+LW8wVfnkqNmE6U7wGwpzfs/JfbqKU7+mpXQtj1ka7422zjGgSnpAhBoXElb/FFjfuLhKzgELA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650432595; h=Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=mL5YVu02bE7lDIXZBCicJrDp8oH6U0PSmB2rgu+WHBg=; b=FrDVqxEztmMtHMWDcgAQGGtJm1/Nwe32ADRzYC/rcJhJCdyfLghvL5vbfF96FoqiZfCtHCmoFqQuzcfmnVcZ7uo9s9/1YZtSYwhr1MCVRUC4ZK8OHJKKb2/n0b8TK/tLqpxNhUaZ6tTAhBSU54XigXZyXcm0bR2On1XnA9RQSL0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+89108+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1650432595791385.49407614213067; Tue, 19 Apr 2022 22:29:55 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id UxaZYY1788612xaZprcfLeyV; Tue, 19 Apr 2022 22:29:55 -0700 X-Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web09.4467.1650432593633123498 for ; Tue, 19 Apr 2022 22:29:54 -0700 X-IronPort-AV: E=McAfee;i="6400,9594,10322"; a="350392008" X-IronPort-AV: E=Sophos;i="5.90,274,1643702400"; d="scan'208";a="350392008" X-Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 22:29:53 -0700 X-IronPort-AV: E=Sophos;i="5.90,274,1643702400"; d="scan'208";a="593048046" X-Received: from duntan-mobl.ccr.corp.intel.com ([10.249.172.71]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Apr 2022 22:29:51 -0700 From: "duntan" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Xiaoyu Lu , Guomin Jiang Subject: [edk2-devel] [Patch V2] CryptoPkg: Fix the build failure in CryptoPkg Date: Wed, 20 Apr 2022 13:29:22 +0800 Message-Id: <20220420052922.1672-1-dun.tan@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,dun.tan@intel.com X-Gm-Message-State: 0Q8wkn6YsVfFB6LiKG2RXzuKx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1650432595; bh=OCGILkkbC5Rvnor75NkHXiqqjhBLshYMzVsUfnlKXbM=; h=Cc:Date:From:Reply-To:Subject:To; b=Zd3tb+phnsy5CFFiS5S3I/hcyZZD+81mmyzGTlu1b2k+tnoDbT4II9Ez2yY3r+g9MzA 6xcaRe3esi5e650zNKruFJ/9SzQIDzb9YmzUZlG/9NwDD4tODlU6BfQGoI/kNmY3zVflz G4kY612IVjI8ClAh62Yozi2APt6AIVkwxZo= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1650432596511100001 Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3908 Fix the build failure in CryptoPkg caused by this commit: fab6285a73("CryptoPkg/CrtLibSupport: fix strcpy") Remove the 'restrict' keyword which starts in VS2019. Signed-off-by: Dun Tan Cc: Jiewen Yao Cc: Jian J Wang Cc: Xiaoyu Lu Cc: Guomin Jiang --- CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c | 4 ++-- CryptoPkg/Library/Include/CrtLibSupport.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c b/CryptoPk= g/Library/BaseCryptLib/SysCall/CrtWrapper.c index 6fcbe5885e..c1fc33538f 100644 --- a/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c +++ b/CryptoPkg/Library/BaseCryptLib/SysCall/CrtWrapper.c @@ -267,8 +267,8 @@ strcspn ( =20 char * strcpy ( - char *restrict strDest, - const char *strSource + char *strDest, + const char *strSource ) { AsciiStrCpyS (strDest, MAX_STRING_SIZE, strSource); diff --git a/CryptoPkg/Library/Include/CrtLibSupport.h b/CryptoPkg/Library/= Include/CrtLibSupport.h index bdc2654b6e..e49060124f 100644 --- a/CryptoPkg/Library/Include/CrtLibSupport.h +++ b/CryptoPkg/Library/Include/CrtLibSupport.h @@ -397,8 +397,8 @@ inet_pton ( =20 char * strcpy ( - char *restrict strDest, - const char *strSource + char *strDest, + const char *strSource ); =20 // --=20 2.31.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#89108): https://edk2.groups.io/g/devel/message/89108 Mute This Topic: https://groups.io/mt/90578718/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-