From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 33680821F6 for ; Tue, 13 Dec 2016 21:41:58 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP; 13 Dec 2016 21:41:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,345,1477983600"; d="scan'208";a="1098884802" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by fmsmga002.fm.intel.com with ESMTP; 13 Dec 2016 21:41:57 -0800 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 13 Dec 2016 21:41:57 -0800 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 13 Dec 2016 21:41:56 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.9]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.97]) with mapi id 14.03.0248.002; Wed, 14 Dec 2016 13:41:55 +0800 From: "Yao, Jiewen" To: "Gao, Liming" , "edk2-devel@lists.01.org" Thread-Topic: [Patch] MdeModulePkg EbcDxe: Fix CLANG38 build failure Thread-Index: AQHSVcm11hq7IDN7Ak6ETxEGELBqgqEG7fBg Date: Wed, 14 Dec 2016 05:41:54 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503A8BCE9A@SHSMSX104.ccr.corp.intel.com> References: <1481692786-6416-1-git-send-email-liming.gao@intel.com> In-Reply-To: <1481692786-6416-1-git-send-email-liming.gao@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [Patch] MdeModulePkg EbcDxe: Fix CLANG38 build failure X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2016 05:41:58 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: jiewen.yao@intel.com > -----Original Message----- > From: Gao, Liming > Sent: Wednesday, December 14, 2016 1:20 PM > To: edk2-devel@lists.01.org > Cc: Yao, Jiewen > Subject: [Patch] MdeModulePkg EbcDxe: Fix CLANG38 build failure >=20 > Change structure value assignment with CopyMem() API. >=20 > Cc: Jiewen Yao > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Liming Gao > --- > MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbHook.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) >=20 > diff --git a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbHook.c > b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbHook.c > index 7592def..c95a22d 100644 > --- a/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbHook.c > +++ b/MdeModulePkg/Universal/EbcDxe/EbcDebugger/EdbHook.c > @@ -1,6 +1,6 @@ > /** @file >=20 > -Copyright (c) 2007, Intel Corporation. All rights reserved.
> +Copyright (c) 2007 - 2016, Intel Corporation. All rights reserved.
> This program and the accompanying materials > are licensed and made available under the terms and conditions of the BS= D > License > which accompanies this distribution. The full text of the license may b= e found > at > @@ -134,7 +134,10 @@ EbcDebuggerPushCallstackDest ( > // > ASSERT > (mDebuggerPrivate.CallStackEntry[EFI_DEBUGGER_TRACE_MAX].Type =3D=3D Type= ); > for (Index =3D 0; Index < EFI_DEBUGGER_CALLSTACK_MAX; Index++) { > - mDebuggerPrivate.CallStackEntry[Index] =3D > mDebuggerPrivate.CallStackEntry[Index + 1]; > + CopyMem (&mDebuggerPrivate.CallStackEntry[Index], > + &mDebuggerPrivate.CallStackEntry[Index + 1], > + sizeof (mDebuggerPrivate.CallStackEntry[Index]) > + ); > } > mDebuggerPrivate.CallStackEntry[EFI_DEBUGGER_CALLSTACK_MAX - > 1].DestAddress =3D DestEntry; > mDebuggerPrivate.CallStackEntryCount =3D > EFI_DEBUGGER_CALLSTACK_MAX; > -- > 2.8.0.windows.1