From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web12.19705.1661397002025744135 for ; Wed, 24 Aug 2022 20:10:02 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=nmSAl33B; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: james.lu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661397002; x=1692933002; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=+dS1OfpPmQ1Eha3/FrNZRAuGAjK3+F+ZrX1HjzqfMEk=; b=nmSAl33B53AxcDIiacR7nE18smXFFwaQBYZOj+VBrdBzr4dEnaTYuXh6 +X341RXOWsGlxLh9DJ27FRkUSXZArirzxxISGzGnqsvYn1t0TdTnT+aF5 KEIvm8fNGp1ePymvNfY4sW9fp9twOoedGzFnvLnUEM7VjI0Ksnkouvtyc igTFypLetoAbfBz5KpdgOxwIkxt/sHQqQuhIS7TowWFaGkt9P9HjusJ5o oMC2bvGZ/1LntWKszru+xccSdslVEiwassHsM21ZuFOC8HXYwq8ay4iX1 TZ5dZBw4uji//7Rk2LOqPyXbMo+s2LKC92Wg6Fobpv1LwOBKlJYVOYdLt w==; X-IronPort-AV: E=McAfee;i="6500,9779,10449"; a="294912103" X-IronPort-AV: E=Sophos;i="5.93,262,1654585200"; d="scan'208";a="294912103" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2022 20:09:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,262,1654585200"; d="scan'208";a="606255599" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga007.jf.intel.com with ESMTP; 24 Aug 2022 20:09:52 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 24 Aug 2022 20:09:52 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 24 Aug 2022 20:09:52 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Wed, 24 Aug 2022 20:09:52 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.44) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Wed, 24 Aug 2022 20:09:51 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G9WE3JgdPlSw6DM1xGRAOeU9OAqTbkEju8774nQSz94Afo64rIH4yxJO6hEArpnYtlt5/9UAswTrI+JZsnreloYeYOKDMZjRlFO3g337Fxbh8dtNeEt9QJsKsGHd+f5PfT6wK+x8VtFZlXiqW+pqSGDvFMvsPadw8AByJS9wVaxOaxYeJ0I2tohz7IxJVbujdvawRvWgOSSzIUYq2UZX+1uOOepvvJOTe8nxrMOfAOjFo70okO5LuBLcPzHP/ieuq3ZceR8KlGcz9Wsx/iLFOFmDyysy1gG7AouqgIbsWbu87gddYecygdXq4W5eq2XtSqEIgWZHKNTXOUrdk4bLUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=gev73bI99rHHLykvbLh1XfL+HDVzyEY1nxvT2rRCi78=; b=oVA2BbbAxNQGT8w4Z7Z67abMl9nArLAYSImtUBGtczZ8LW3XisBrW+B0c+8eX+TpkwVSF23B0dRSUMRCguPlJP5+cUkHIkJPEMFD0uEG58cR1RvoFFmP2tLMYs9xD9DDFaQJnbokjqUiMNz+5hMtvhP0YoAfzlIo8vPkTFetdKh23Qj/EL9ZMOQyM1JGFnTPHNnIMXRvJZkYt/WJXOGqB45bPqIMYmXy1KaQmN3lCuoUkARvEL3rc/n6fgIzpFulTEbo3+DqGL6GkGfzS9ez4JcfdJFalswn8qKYJbru9Yq7yOA0wEgqn4s/eX/XOQeWdM8ZVIQhMF5FmquqTebE/g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BN6PR11MB1908.namprd11.prod.outlook.com (2603:10b6:404:103::13) by CY4PR11MB1560.namprd11.prod.outlook.com (2603:10b6:910:4::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5546.21; Thu, 25 Aug 2022 03:09:49 +0000 Received: from BN6PR11MB1908.namprd11.prod.outlook.com ([fe80::9c39:88cf:f55:b7a]) by BN6PR11MB1908.namprd11.prod.outlook.com ([fe80::9c39:88cf:f55:b7a%10]) with mapi id 15.20.5546.025; Thu, 25 Aug 2022 03:09:49 +0000 From: "Lu, James" To: "devel@edk2.groups.io" , "Liu, Zhiguang" , "Chen, Gang C" CC: "Ni, Ray" , "Kinney, Michael D" , "Gao, Liming" Subject: Re: [edk2-devel] [PATCH] UefiPayloadPkg/PayloadLoaderPeim: remove GCC build warning Thread-Topic: [edk2-devel] [PATCH] UefiPayloadPkg/PayloadLoaderPeim: remove GCC build warning Thread-Index: AQHYt8VpgVeAQ0VbRECFUzon3kfc9q2+4wKAgAANjMA= Date: Thu, 25 Aug 2022 03:09:48 +0000 Message-ID: References: <20220824142701.3657728-1-gang.c.chen@intel.com> In-Reply-To: Accept-Language: en-001, en-US, zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: a6d18e7c-1b25-4ad4-f9cd-08da86474547 x-ms-traffictypediagnostic: CY4PR11MB1560:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Z1VV25iHBXq9BVmP+7wz2rONsYloY5O2yrhZHE35V2Rz99JrJ2SgirlrOPgOj0M9P/A5ApJcpGgmLpBRT34zwzRoF6g8QougPJn1fDbTAUVBfKiDs8H5xFN8T1nBaPsRnu2t93VPdld6KzC1eRAwj7Rt6LVxJFf2yEV8fwvUQ/56sQOH9ABxJSPbSWD/iElwzDH4rLEcO7ctQWfc6c4SCId3bAG8nyoxInEj8kom1XyORtdWJPGh3Z7MKzmJOx33fmPokoFa8ObgHbDZUeWOQ+NT/tg2LIhV4fZjIHnETLD7ke/wZgyPyJA//Qekjuj0+/GZzZzdq2Lq9yiRH9wxzdxrFLPG1eqf0zrxl8hW2CF7/0Fb4a9W+ylZ3vdgcICfS5TmvL/4/ld70hCiYw9XIp2tXn+hjrsqsbYyMZBWuyTviAZ/uZ7h7GVLflzm2/nsLPxeMMtYbKkoHX4C9o5tS3J0CMLtv/UcDRhxPv0+emq6/TbxI+3Q/KWl1W0yqmlfbeLj4C7NIc6NWDDnwJeba/5YlfhdCE5hYBqaJs8q8NA4ppYdp8ux1kdaEqoU6un8ib25JYdrghTGqkRD56NM8FBx2vGhsmD+9ThaVTHWdJGCsJ88uZco0iO1rri5tDhQu/D42bTx1o/nvjdpxnCLbucHVFnYPuJPQYzUp2fgrS7T9GvHdyXC3NDfEf4Vha0GVkRTg9rpfV5bCou6RjDfC//rIl6sTgKyvIcVqVLXQYeuDROBCJldss0hVbDVnXee/M01sSUNJ1t/eFo39z0XUj0H5qRL8F7kpynXT4w/CEd5zuwJt564bjEbXhgF8g/4IKOUEIN9y78mceajMJXOow== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN6PR11MB1908.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(136003)(376002)(366004)(396003)(346002)(39860400002)(110136005)(6506007)(76116006)(6636002)(71200400001)(54906003)(966005)(64756008)(66476007)(66446008)(66556008)(8676002)(4326008)(316002)(478600001)(66946007)(41300700001)(5660300002)(86362001)(52536014)(8936002)(55016003)(82960400001)(9686003)(7696005)(38070700005)(26005)(53546011)(38100700002)(122000001)(2906002)(186003)(33656002)(83380400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?TQiTyydwXx5gy5ad3CMwqFjLhDdu7zeHHVMNfwpf5pZU7vS1lJjWUXKVJ+lM?= =?us-ascii?Q?RoUVfa50YUaPW9cigMQYBu5Rv/Dkq+BXntn1Z+todP4nIT3n7vKvlbmqials?= =?us-ascii?Q?hPdcoIu5x017M0Q99HO9uRcP2dSlhV34G5hw41DHwGGkqsW1+7L/px3g0E56?= =?us-ascii?Q?ST4RDtWeTqLWdFCJ1TEEoecOkzQWVABiK9HnZ+YksCoNOKomG0X9+NndO2bj?= =?us-ascii?Q?S7SOYAPMA+ZTHlKs9hfpGFWq4tRJRSvVcrOk244X64KpOCXj6Ei3cLrLeodm?= =?us-ascii?Q?dThP7HaY4EwBFI3AuBkzLkYolqsmHy8tksWpJW4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EFYWt1ytoL6Ryr/UTpf3pBWa0SugsawGT/16k9rCAfm?= =?us-ascii?Q?EzuqiZF8WlGrd1T9x1l2H7ImwlqMSqZC8bXtyc6HrQaMeuhxRIsVe26D2co/?= =?us-ascii?Q?fF82LGAT3CwHXdJtnZAKJzeYUFChwW0Qda6uq7ouGKmnoUk22QKaFrEwFEnd?= =?us-ascii?Q?5PLObVnr5+Bui3z+BBnyfchLVSTQlQWVmcFu0Y9hivmzsk+47gFbrYxIOHIT?= =?us-ascii?Q?qR5P0an++GSPS/NhMEERRbhsRPWO6tqeYfFuaOpxVq5xrI9Ne93D7FE9wPZb?= =?us-ascii?Q?OjrmTmLazslE+LFKO3386caZ6QR57bT6ZWUWq/eHQN60yIBIoV+cZbsuhGv4?= =?us-ascii?Q?Ksdtf7joLjuALYixL+KEHV1Mg49OZ/9jISuPa39G?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN6PR11MB1908.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a6d18e7c-1b25-4ad4-f9cd-08da86474547 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Aug 2022 03:09:48.8866 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: dWRVRhe4SO94aC+FPuYjvI3rBo5Co9FlI6IeW7top43+y2gZ2bbs76d2UMYSnFpzbN+rcL0gOVWZuQyBKDpuhQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1560 Return-Path: james.lu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: James Lu Thanks, James -----Original Message----- From: devel@edk2.groups.io On Behalf Of Zhiguang Liu Sent: Thursday, August 25, 2022 10:21 AM To: Chen, Gang C ; devel@edk2.groups.io Cc: Ni, Ray ; Kinney, Michael D ; Gao, Liming Subject: Re: [edk2-devel] [PATCH] UefiPayloadPkg/PayloadLoaderPeim: remove = GCC build warning Reviewed-by: Zhiguang Liu > -----Original Message----- > From: Chen, Gang C > Sent: Wednesday, August 24, 2022 10:27 PM > To: devel@edk2.groups.io > Cc: Chen, Gang C ; Ni, Ray ;=20 > Kinney, Michael D ; Gao, Liming=20 > ; Liu, Zhiguang > Subject: [PATCH] UefiPayloadPkg/PayloadLoaderPeim: remove GCC build=20 > warning >=20 > Fix the gcc build warning: > variable PldInfo set but not used [-Wunused-but-set-variable] >=20 > Cc: Ray Ni > Cc: Michael D Kinney > Cc: Liming Gao > Cc: Zhiguang Liu > Signed-off-by: Gang Chen > --- > UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.c | 5 ----- > 1 file changed, 5 deletions(-) >=20 > diff --git a/UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.c > b/UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.c > index 9a2c3c148d..fba0e6cba5 100644 > --- a/UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.c > +++ b/UefiPayloadPkg/PayloadLoaderPeim/PayloadLoaderPeim.c > @@ -48,7 +48,6 @@ PeiLoadFileLoadPayload ( > VOID *Elf; > UNIVERSAL_PAYLOAD_EXTRA_DATA *ExtraData; > ELF_IMAGE_CONTEXT Context; > - UNIVERSAL_PAYLOAD_INFO_HEADER *PldInfo; > UINT32 Index; > UINT16 ExtraDataIndex; > CHAR8 *SectionName; > @@ -85,7 +84,6 @@ PeiLoadFileLoadPayload ( > // > // Get UNIVERSAL_PAYLOAD_INFO_HEADER and number of additional PLD=20 > sections. > // > - PldInfo =3D NULL; > ExtraDataCount =3D 0; > for (Index =3D 0; Index < Context.ShNum; Index++) { > Status =3D GetElfSectionName (&Context, Index, &SectionName); @@=20 > -96,9 > +94,6 @@ PeiLoadFileLoadPayload ( > DEBUG ((DEBUG_INFO, "Payload Section[%d]: %a\n", Index,=20 > SectionName)); > if (AsciiStrCmp (SectionName, UNIVERSAL_PAYLOAD_INFO_SEC_NAME) =3D= =3D=20 > 0) { > Status =3D GetElfSectionPos (&Context, Index, &Offset, &Size); > - if (!EFI_ERROR (Status)) { > - PldInfo =3D (UNIVERSAL_PAYLOAD_INFO_HEADER *)(Context.FileBase + > Offset); > - } > } else if (AsciiStrnCmp (SectionName,=20 > UNIVERSAL_PAYLOAD_EXTRA_SEC_NAME_PREFIX, > UNIVERSAL_PAYLOAD_EXTRA_SEC_NAME_PREFIX_LENGTH) =3D=3D 0) { > Status =3D GetElfSectionPos (&Context, Index, &Offset, &Size); > if (!EFI_ERROR (Status)) { > -- > 2.35.1