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.web11.19466.1661394123283705893 for ; Wed, 24 Aug 2022 19:22:03 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=CZmMrKCY; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: zhiguang.liu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661394123; x=1692930123; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=v+T4RYjlKNMmTdshL8fLkrO+VGV2GbGPz3734rQL2Xk=; b=CZmMrKCYA27h/vuoew60l0SxAhY7XQvBRUqGDBHwxiCWcNFxkHF+NEbX bYqvVnb7B0J7ROlRC7+6z4wqwtOGhX4xuz7WxsfKHn/m9QP06P5K7UHwl 1TxrUIi4WAcjxrmA8Eue02uiBQpPozi3zk9LJ+G8ECaOjW6ziChbIeq/N Gr2i2zXlVzxSLOJAm6N0LNF8HGQM832YysRLBMKI1dLFsAXar7kd+eR0n GndG7EwxjXlB2k2ATUa4FGPd15StTjXmKeXDdbIhffrhDptG5br8a27eG 9SHOoc1o6+abzfIinKp8ESmCUe6kPwiz6Ue+0qQZI7d6VR8VZOh8yu/yr g==; X-IronPort-AV: E=McAfee;i="6500,9779,10449"; a="294905905" X-IronPort-AV: E=Sophos;i="5.93,262,1654585200"; d="scan'208";a="294905905" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Aug 2022 19:20:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,262,1654585200"; d="scan'208";a="639386377" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga008.jf.intel.com with ESMTP; 24 Aug 2022 19:20:47 -0700 Received: from fmsmsx608.amr.corp.intel.com (10.18.126.88) 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; Wed, 24 Aug 2022 19:20:46 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx608.amr.corp.intel.com (10.18.126.88) 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 19:20:46 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.177) by edgegateway.intel.com (192.55.55.71) 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 19:20:46 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aJr49lX80+WV4QIRuNcplidpf20hTxtLaIPfXQ94ciJ0FtGewzTV7lS0qQbmjJGl42fIkSqRh62oGpglkMc/UhmbVr8ShgPhsFmfkF/3y5xuzgQUkLblPIGxuSUOKPo7g9WY3K6TS+4s6nWOlEgMNnkz6xuANxVxHmeG8Y1JxiYdQetHrCHYygkpnHz1EvRhOaonHfP+r4O8Ki2QuAw+06PE5vHZQb+WSo0F+cMmDonuVZeIhE5DZmvsSHFMrixqWTghIFUQEPxLU1k3OE9H10ZWF/cB5LDlOzloSAzuK+1Ya3TGZNRCZqlhEu733pKIwm4p42xHaw7N8vUXpk4rOA== 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=HRZIeDsyYCieHmLj2zcJ7yjpxF6SHyuCz1TVL2PkBD4=; b=Y9OXsIrMGOsrfmt0/8Wj4WRDPEqWzw9zfPnmefsRxQjoqJJ29UPnH5o4+nLBtcKfpxFI7hJ0jdX+2RyhJHDZI25OA5ND+/MoSAN7O9/cyCpYPWzj+5BPGQi7ygnbXO4sAihgx2LAYJu29Y1Lz6KU9Ywf02JjO+Cfu1qFmo2bmd+86BO3rpzIpWaDXX2E1jit35PSpyv7Ug5bet0WkEBXQ5/SQjwdcrlmeDFoZG9ylVTel6Cu1Lmq/lfjcGunIcYJNZjfK6o4EaLyNeb0XTRD4KbGKV9a23y2Dv9IT5dh/l1Yu80PQsF23a8q6gFh/3O6c/bgqI+lk1Sfd6d1ZhxqEg== 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 PH0PR11MB5048.namprd11.prod.outlook.com (2603:10b6:510:3d::14) by DS7PR11MB6080.namprd11.prod.outlook.com (2603:10b6:8:84::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.19; Thu, 25 Aug 2022 02:20:44 +0000 Received: from PH0PR11MB5048.namprd11.prod.outlook.com ([fe80::989b:d201:5de1:4be1]) by PH0PR11MB5048.namprd11.prod.outlook.com ([fe80::989b:d201:5de1:4be1%3]) with mapi id 15.20.5566.015; Thu, 25 Aug 2022 02:20:43 +0000 From: "Zhiguang Liu" To: "Chen, Gang C" , "devel@edk2.groups.io" CC: "Ni, Ray" , "Kinney, Michael D" , "Gao, Liming" Subject: Re: [PATCH] UefiPayloadPkg/PayloadLoaderPeim: remove GCC build warning Thread-Topic: [PATCH] UefiPayloadPkg/PayloadLoaderPeim: remove GCC build warning Thread-Index: AQHYt8Vowb1jD92SOEeEAwm6UOohK62+4rBg Date: Thu, 25 Aug 2022 02:20:43 +0000 Message-ID: References: <20220824142701.3657728-1-gang.c.chen@intel.com> In-Reply-To: <20220824142701.3657728-1-gang.c.chen@intel.com> Accept-Language: en-US, zh-CN 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: bcf7d4b7-eea8-4ebc-858f-08da864069d0 x-ms-traffictypediagnostic: DS7PR11MB6080: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: eQbj+lUhAXLYyGS6YmSeosIzK359TFUBgr3mNPtD+xVzlvIxxN/NBD1ziBz57gEn/X3rSbksiQu0aXwBiIncwenvQe8yv4AVYZQzgTvNLyk0H64vn6bMd3PH5fzJ25xG6pBwC2gxEbUXxKXFOnUtScpVy5SNcoMlUAKRYLKeQu1cxyKpb5qcDzCKWaBpvo41neK8Akfiu9qqaXE6T+apLthF9szKlqohXevViDipP7sRQ6208CBD93F53XjLZ6vYGd+zIFbI0k7W7K5OV20Yev0I4XHNEWdRY/Q3bRQelJNioDWMZfzgiUaKUbaU/08f/lp/jUBEgtmwv1WHXIk3AxA7LU1KGELUm32KPsF2h/4iq5h1sWESgmRzGpjaFPUrsjM47XYFXCTZxSnParpI3XO6YkliDBKRyewnnGFurW4Ql0lSZlBWv4F0wX/QlHBB2RN7Yq26An8uKaACtiQ1H8ACcElLcmCbp727t9W9hUVLjGrWAQ0HyNPv0ODoeyq5w3woI28JEpG/91ZbcO2jOWM5yyAZzjXLYyfnMrnq39F21CW+lYxC5N4inLg7rQQtUz3NaomCPzvZZmgkdQYCeCjgdZFaUKwsmueiiarqUbp10Z9fswG7jqCNhKBHWIm86PBveFT1gHKcVZFvVS1I1YiJPiivJ7J8n6K6QJgGgNDV6hhwtXy0uyouxvu7pphRmBA77Kc6mIAQBKbZaUWHiL0hUc62KHU/WW9IXFuPX5ZTt+ybgW1jxdDQgWysMXS6sfya4bYmanyBUzSuzRyJqQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5048.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(396003)(376002)(346002)(39860400002)(366004)(136003)(66476007)(41300700001)(478600001)(5660300002)(55016003)(54906003)(71200400001)(52536014)(66446008)(2906002)(110136005)(8936002)(66556008)(316002)(76116006)(64756008)(8676002)(9686003)(86362001)(38100700002)(26005)(4326008)(38070700005)(6506007)(53546011)(7696005)(66946007)(186003)(33656002)(122000001)(83380400001)(82960400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Fjl4M52fawWMDSCQmJ6OmvLMYUoVDfyEB7VyYlbGH+PIEoLTvFQ5N9tNBf4o?= =?us-ascii?Q?WwSMA6SUU1sQE9CHWcHillJR+zBVAYF5Dgvty2keNY/DlFIKM+TGkBRG254A?= =?us-ascii?Q?8ZX+I4mnnHd7eIkcibnQnyVc8MOIWN0RSJ1ibyLucLOYuPxvZHxcx/z7QrXU?= =?us-ascii?Q?TfHMYqaHeUFZZWWkt+hkxY8WdLMx1s5tCam0fQg+0abwx9GIDwDl6wlvSrfE?= =?us-ascii?Q?zl74VCDzz65LHf0Jqr28a4tOAhaOoS7YyJRDr9Y9Sn+Nz6iA5e1REWpnx/W9?= =?us-ascii?Q?oApaPo0SFGic+vs1fm43PE9ud3659NCP8ULU/QLnLFIgiK1KBUbdATcDASbW?= =?us-ascii?Q?7t7rpTZVeJsakTvDZwZePqqmXGuNL2c3EREGQ1KwBE8sIvNieRKYKWX68wIa?= =?us-ascii?Q?kyf8Ulb1o0vfu0lbcXh3y7+KodOGtDD1irYz5D6ZGOlmpMcYrGhd0s2hwlgO?= =?us-ascii?Q?FdLKhak4Wo9LApl3eeh+bRp4QYfb52d8BXWE7GqI4s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+0eD4SPVbnMhF5DMzI7AAlBU7b7Y2Cn4U1k/1GPrhYzDPxVvlz7z9?= =?us-ascii?Q?OCL3ytQtphr7oZkyt9jZjv0MupjQienAN11JbE0EfjUwHRyFA5ynHZyPKoJh?= =?us-ascii?Q?WpheRLryHBsXCAa7P1ThMIN5LWNpgL8bILuHJZbz2vhfaUt+EsSwhRk4cBTO?= =?us-ascii?Q?owT/6Cs7ax5fXwXVScJUhMuzixfwhEx1ZXKkWDW2?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5048.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: bcf7d4b7-eea8-4ebc-858f-08da864069d0 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Aug 2022 02:20:43.7335 (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: FOHcIA7mlJQfu+IZbbeBK79F6a+LrcQo412Sg1BzckQdn/O5Yu26Ei1y2CAqPUz9YGeyhMTQrTHkUMVlunFQPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6080 Return-Path: zhiguang.liu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 ; > Kinney, Michael D ; Gao, Liming > ; Liu, Zhiguang > Subject: [PATCH] UefiPayloadPkg/PayloadLoaderPeim: remove GCC build > 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 > sections. > // > - PldInfo =3D NULL; > ExtraDataCount =3D 0; > for (Index =3D 0; Index < Context.ShNum; Index++) { > Status =3D GetElfSectionName (&Context, Index, &SectionName); @@ -96= ,9 > +94,6 @@ PeiLoadFileLoadPayload ( > DEBUG ((DEBUG_INFO, "Payload Section[%d]: %a\n", Index, > SectionName)); > if (AsciiStrCmp (SectionName, UNIVERSAL_PAYLOAD_INFO_SEC_NAME) > =3D=3D 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, > 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