From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from walk.intel-email.com (walk.intel-email.com [101.227.64.242]) by mx.groups.io with SMTP id smtpd.web12.7754.1666258337329412284 for ; Thu, 20 Oct 2022 02:32:18 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@byosoft.com.cn header.s=cloud-union header.b=jVizjoLE; spf=pass (domain: byosoft.com.cn, ip: 101.227.64.242, mailfrom: gaoliming@byosoft.com.cn) Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 38F2ECD1F687 for ; Thu, 20 Oct 2022 17:32:14 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=byosoft.com.cn; s=cloud-union; t=1666258334; bh=bhQTUo+Fb/wjCsCwZNB7u606T/tjshAyT4oQ5TyaclY=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=jVizjoLEdWr0cRjAn86YZyC2RGCkabD87T3B49vo/eDzrL0Pgua8cmBJtc+C1I3Gq EYwQV4+CsL+eX2DzmN8GZ/gKK3inZt4dGEby8l0OZ5fimiAyo0d4hlmOxpWGNAN4mq xY7vd/9YZtFoaccd3AkzmHZ6cSjOpQKZ4ondX4Cg= Received: from localhost (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 34D9FCD1F740 for ; Thu, 20 Oct 2022 17:32:14 +0800 (CST) Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 0D592CD1F694 for ; Thu, 20 Oct 2022 17:32:14 +0800 (CST) Authentication-Results: walk.intel-email.com; none Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by walk.intel-email.com (Postfix) with SMTP id 96FDCCD1F6C2 for ; Thu, 20 Oct 2022 17:32:11 +0800 (CST) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Thu, 20 Oct 2022 17:32:09 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , Cc: "'Bob Feng'" , "'Yuwei Chen'" References: <20221020092501.3783878-1-lichao@loongson.cn> In-Reply-To: <20221020092501.3783878-1-lichao@loongson.cn> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIHYyXSBCYXNlVG9vbHM6IEZpeGVkIHRoZSBtdWx0aXBsZSBwYWlycyBicmFja2V0cyBpc3N1ZSBpbiBHZW5Gdg==?= Date: Thu, 20 Oct 2022 17:32:11 +0800 Message-ID: <02e501d8e466$d50fcfd0$7f2f6f70$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQFLehspB6NPwdyqkx1CyXNifCVFTq8x2XCg Sender: "gaoliming" Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io = =B4=FA=B1=ED Chao Li > =B7=A2=CB=CD=CA=B1=BC=E4: 2022=C4=EA10=D4=C220=C8=D5 17:25 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Bob Feng ; Liming Gao > ; Yuwei Chen > =D6=F7=CC=E2: [edk2-devel] [PATCH v2] BaseTools: Fixed the multiple = pairs brackets > issue in GenFv >=20 > If operation Werro is turned on when compiling BaseTools, the > multi-brackets warning will be reported. This issue is comes from on = of > the LoongArch enabled patche. Removed extra pairs brackets to fix it. >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4111 >=20 > Cc: Bob Feng > Cc: Liming Gao > Cc: Yuwei Chen > Signed-off-by: Chao Li > --- > BaseTools/Source/C/GenFv/GenFvInternalLib.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/BaseTools/Source/C/GenFv/GenFvInternalLib.c > b/BaseTools/Source/C/GenFv/GenFvInternalLib.c > index 5c3d54f5f7..b5b9425003 100644 > --- a/BaseTools/Source/C/GenFv/GenFvInternalLib.c > +++ b/BaseTools/Source/C/GenFv/GenFvInternalLib.c > @@ -3559,7 +3559,7 @@ Returns: > } >=20 >=20 >=20 > // Machine type is LOONGARCH64, set a flag so LoongArch64 reset > vector processed. >=20 > - if ((MachineType =3D=3D EFI_IMAGE_MACHINE_LOONGARCH64)) { >=20 > + if (MachineType =3D=3D EFI_IMAGE_MACHINE_LOONGARCH64) { >=20 > VerboseMsg("Located LoongArch64 SEC core in child FV"); >=20 > mLoongArch =3D TRUE; >=20 > } >=20 > @@ -3721,7 +3721,7 @@ Returns: > mRiscV =3D TRUE; >=20 > } >=20 >=20 >=20 > - if ( (ImageContext.Machine =3D=3D EFI_IMAGE_MACHINE_LOONGARCH64) = ) > { >=20 > + if (ImageContext.Machine =3D=3D EFI_IMAGE_MACHINE_LOONGARCH64) { >=20 > mLoongArch =3D TRUE; >=20 > } >=20 >=20 >=20 > @@ -4002,7 +4002,7 @@ Returns: > mArm =3D TRUE; >=20 > } >=20 >=20 >=20 > - if ( (ImageContext.Machine =3D=3D EFI_IMAGE_MACHINE_LOONGARCH64) = ) > { >=20 > + if (ImageContext.Machine =3D=3D EFI_IMAGE_MACHINE_LOONGARCH64) { >=20 > mLoongArch =3D TRUE; >=20 > } >=20 >=20 >=20 > -- > 2.27.0 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#95422): = https://edk2.groups.io/g/devel/message/95422 > Mute This Topic: https://groups.io/mt/94450039/4905953 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub > [gaoliming@byosoft.com.cn] > -=3D-=3D-=3D-=3D-=3D-=3D >=20