From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web12.9921.1650471989189111872 for ; Wed, 20 Apr 2022 09:26:29 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=cmoGd/Mo; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: ankit.sinha@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1650471989; x=1682007989; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=d3oJE8HU1SpzmFG0emra4+jrSlPe4bYZyEtVk+bw0tA=; b=cmoGd/Mo5ICsUhllurmdPOlz+WAbvUoXRFlM1qaROJMdLHWZFDYIRmBz ugJiyhKogSPE55SXzNcin67xFablr30AMYfN60gvzGIJW6N06M4fWEh9V 2pRJhIal3EU/gsNo+pL/iFQfdQymE6PVbAY9MMu4TKmgz/P8nUhoe0RMM SQiJAvOTqNJp7EE6XN9AQYV2ePEEtcd1rW55krFHtN+76rTmL5Bk2e4BQ oBBWaWvfIW0ZgZ6jrvswN+XSQ1rVSdWEfjaRARwqOfgZcaRgFLL4O14R7 Y+EDomUr8HUZfpmVLSZZul74cF5BFiSr634Rl+RQIZjpBWzuj3qVqb+5A g==; X-IronPort-AV: E=McAfee;i="6400,9594,10323"; a="264250818" X-IronPort-AV: E=Sophos;i="5.90,276,1643702400"; d="scan'208";a="264250818" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Apr 2022 09:18:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,276,1643702400"; d="scan'208";a="702700077" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by fmsmga001.fm.intel.com with ESMTP; 20 Apr 2022 09:18:22 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Wed, 20 Apr 2022 09:18:21 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) 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.2308.27 via Frontend Transport; Wed, 20 Apr 2022 09:18:21 -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.2308.27; Wed, 20 Apr 2022 09:18:21 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L0oltUS6LHntat5XD2sbGOZBY2gpNyW/3rc4CdJI+eGvDTnSsJqqG04Yf0Dyw03GFe5uZ87ZkKBH7AU6261k2pFo1BCSzdgok3luC3fNkU5/fM5qfXkV/+y8FnY4ZdGWvbHVuL0sq3ks7TMMz1BNp7dgnugpzFNBK+BjVRj85ez5UAgyYit237Z7IYyLysYQUdRnBjQTPv+ylIW5Ks+QgxQ3ioT+cSQca5XtQjRjnlKe78sHe9LvY4Rz+abAGhLV8hrub+VDC6eBg1BG3X1Cy06T7ZS9XLl2vFnHS9v28Pvk5qDS5loPXeOjm/Bt7tmkspnqU4Q6EatzxE1FXvhing== 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=Qt2ZaZGZkuW/Ak41hp/su/+RAphAJ6cSDU7Ps8i4bp4=; b=fl6W/Db/0Aoz2y/dPN9m4NG8ObVyJR9b3Cs7BvpoRTOdU8UWlbJ080QxRx7GWGwHudNP0jzTvzS0hj6r2p2irYzCy1d+4Z6KADE5dcSBDfcHtMXnI92EmZXtS+24Dkg1DPdVfrmP80bb8wPjFC0Ca3FA6NmxQRUAEKj6TjR8Fb59GRSNJX2ohFpVdEkHdD5WiC3G/qRQDAC+6yC7cW9WZ6fxd0QociulMJBNpSAt6KzwGY/DtDsVHkrIQFeeOsm/piZWjkuGzJ1a5m2pqlx+zOAixehRDTyJ4aIgmfKowv21E3mwS+o8cAE5fAujt7y8+KLh0J0xvISoN5H50CWWoA== 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 MW5PR11MB5908.namprd11.prod.outlook.com (2603:10b6:303:194::10) by SA2PR11MB5179.namprd11.prod.outlook.com (2603:10b6:806:112::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5164.20; Wed, 20 Apr 2022 16:18:19 +0000 Received: from MW5PR11MB5908.namprd11.prod.outlook.com ([fe80::c5f4:1b74:1a8f:4c0c]) by MW5PR11MB5908.namprd11.prod.outlook.com ([fe80::c5f4:1b74:1a8f:4c0c%7]) with mapi id 15.20.5186.013; Wed, 20 Apr 2022 16:18:19 +0000 From: "Sinha, Ankit" To: "devel@edk2.groups.io" , "mikuback@linux.microsoft.com" CC: "Desimone, Nathaniel L" Subject: Re: [edk2-devel] [PATCH v1 1/1] PrmPkg/DxePrmContextBufferLib: Fix unit test GCC compilation errors Thread-Topic: [edk2-devel] [PATCH v1 1/1] PrmPkg/DxePrmContextBufferLib: Fix unit test GCC compilation errors Thread-Index: AQHYU40bTkD173b5F0aPG2Uz7wppZqz4/SEQ Date: Wed, 20 Apr 2022 16:18:19 +0000 Message-ID: References: <20220419012717.1557-1-mikuback@linux.microsoft.com> In-Reply-To: <20220419012717.1557-1-mikuback@linux.microsoft.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.500.15 dlp-reaction: no-action 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: adf243d6-44e7-4374-ed2b-08da22e96206 x-ms-traffictypediagnostic: SA2PR11MB5179:EE_ x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: p44iEvLmZfTaszmel08n7Mo4CM51Xzm8WkpfK9WbaDgOpnRdecvefSixg5CrjOpWt77xU1/UXyW1ujIWeje1Mp5o8k7AzAmdtkpw2kWFCmYHywV1m4wbwXcUtJdrEQtY9i5QFC2rTYM7tAasECNPQSzIdIsQUkYrozoYWpFokq6+fJjEObMQCyIk6jW9jBEzZfDy7XQhHcLTU2OgVdqho9NbeELjzr13+cIirh6TAJKYGsEqLZfgk2YYQ9aZkvLiZWsUGgt9ov+iCR+CEo2jIp/uMHTpfWbH36jdUPMSLDZ745zjnlbUeEqol51H0Cs4QfWYGcXeFuVsl+LmKvQEjNCsDosJHK4DBx+tR0pSTylxaHvpsM1zpOublOuqmHSv+La3k/IKIy30YsfhBtvjgzNYyHHYmjPHaHd2G7d3fuHy2fgSjtq/UeMApZbLyU0smlfGVoAasrvFd6rURmUgRCOmjPnhC3+CdshUsOJwVMvRkMjznsj4JbYCKj7FdQVkbN3Fqm9H7cRr8kJzCkicJllisjFms1uqEALYUGLB6PifgTjz8+uQcx0vIjN2Js9z2Q95X/9Y3AKO5aESME9RE0fwN0f8f3PaeamxBRc2H/J3gGsCYxrKuye20fwX+vUk9jrgYxMwiV2kejY7mtQ7yn4xKXCxMKOqdaGn04Jr91QblAZgI2OEkzHhdC9iPfju/Zin2G166eIaQoQtvhdcctqH0qpKWnhAH0a2YiXH+8vK7dNACFcDDDguqQUI46yC6FR0l0zUNnuoV3Vr0b4QqC2i9c7ezwMRWngA58WZDuU7Nd3Z2+aKZS4aIS8goKS6jKsc+yfzc8B+epP8ZS/au6BXJyoke6dGJ3zS24XZ0TU= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW5PR11MB5908.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(122000001)(2906002)(4326008)(8676002)(86362001)(26005)(64756008)(107886003)(82960400001)(7696005)(966005)(66476007)(66446008)(38100700002)(9686003)(6506007)(33656002)(38070700005)(71200400001)(8936002)(110136005)(508600001)(53546011)(83380400001)(186003)(76116006)(66556008)(52536014)(66946007)(55016003)(316002)(5660300002)(213903007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?vSUehSQqerucuNbw2FZXLA6YNzdqTOlHGwBXBKaswxcXAGUIOZu7mHuSe+TW?= =?us-ascii?Q?/jPF4KnHZKsywqtOldPxZlDBsW9O63sh5PFvNCGyGQNM+T8lT+MrXI1IB4Xm?= =?us-ascii?Q?9xz93m3ijoyF8Gk/TJoLEy6IUw2QriWGlgU+luj4UjFmI5k6bEMsgFkRFy9A?= =?us-ascii?Q?qc+ebBWmOl1Fi0e7NCe+MTHlPdjj+ywdBYHTTFu7wzJVk0ue6AApe5CU1nwk?= =?us-ascii?Q?OkCLwZ6Lp7mNVmT8DMb0OwLOuPj4Uzq8KjYmhhB6ijBQeeCI4bUfExVY06/N?= =?us-ascii?Q?7h8KCv1aSdDbHMT6qr+vCfpvhnbhXy8WwgOvHzVVDgZ4OhZr0+XJYVqfc+SV?= =?us-ascii?Q?Y2DmnXYNt57auOshSkYgpomo9q+TPjHGUwIQA5NgxdBtHeGNmreAuTfU5QWe?= =?us-ascii?Q?LU3yih/hHr2D2JNii/tvlf7/FZ53g67l2qdSlTSq3bBU9ogcVagzuSZIbhkz?= =?us-ascii?Q?xgGGfEiUp8PklaVrZTsH4YX0sPa0CugBVDSaZ7w1TL1NMueaxBbgpMHRzT/7?= =?us-ascii?Q?YG1ScwxFORlsd5J9ZdvBro4+B0jq2lu8RivCSOydxjoPVp5cJ6A9fxjoIM1e?= =?us-ascii?Q?/YAsm3VgkVvx9I3eDrrBlxOqXovU/TldknQeiIEUJoVutTZckK7ldzPM39rJ?= =?us-ascii?Q?cJoy7yZmlh2yAlZRmf02FL66oUzriidJTXW0CybNmGoHEVK45rTRzQ3T79Zo?= =?us-ascii?Q?lMj9/cRnZVUBR71VIav6NA6oJlQkWaaBaCwG+7PYKkQfJhzb0+M82URk2WYA?= =?us-ascii?Q?BKEP98oo9e0LmDrnyzrBLzT88kz2DDh9OQe2PusaNOEAmvavTGE7rMw40aar?= =?us-ascii?Q?ej1H4Qg5rXZt2I9EixDQOVckBHqpCVQP5M73unPTgAv5avY270Ui2ilxFRvT?= =?us-ascii?Q?q57rqREEYLPEth4CAd66LKFZs5bavOK0sKFPIAS3OSoBhCdzaZqzdIWQbDx8?= =?us-ascii?Q?CoR4vEkgK7yoV2c9uii11dnNp4vWZhxlxU7/o+EjgoRE+2msGMEcOCo3RHn6?= =?us-ascii?Q?Cn0y0KqxMT6k2faXn8/fdcKM6t1JfVAHFcmZHebyJbcgmG+6J9t7Ycqp6cEb?= =?us-ascii?Q?4Tq31AVDDXKyLbfyUWg4QTOujp6felN+rWRYRuG8wp83FCen8Q0yIIouSu/z?= =?us-ascii?Q?GQ1Y4HQAjolwF4lWBhvPvJy7LsR/12HJOYtScYPTXAtoEXa+O+Ns2zViTbhJ?= =?us-ascii?Q?NLWdzUpfIAU4vUrFH39ljyT0zv4XxGPPHNYMdfS/kVlTokFk/a/rrfXW6/9u?= =?us-ascii?Q?kscj71OLQCw+1wbyeevOAp6AR/UA1Re1sVJU9+ij7CL4gbBYd5zNK2dwiHIR?= =?us-ascii?Q?hN8i8m6emYfwefqsFFd+kbocASuRchNkMfc9XsNsoGVxsLmXk5pClV5TnBEu?= =?us-ascii?Q?JPNJ2pwinmPMXTwyxTObD6OjMBIunAqjs3xnSUP+VuveMmvFGhlL7EATtL61?= =?us-ascii?Q?Ex2WPYxis+pPj/NoRkZdzwt5U2AvZqYgc6McknJEKsHVi+zLn6s57ke8pLrP?= =?us-ascii?Q?YZTefgqggL7sgKj/nzhDmYIbyucxgxiUYmeHUB+0efUENxEmLgpHILhcMmno?= =?us-ascii?Q?QqNneF2vSJSpcklOglI6wBC6NGQKCsmWq7ZEGv2goyFFgOhWfFmPt0z1Lkqv?= =?us-ascii?Q?Kxc2+Ur2qMg86WS1/hD1W9yyGA7arXsoTN9Wi1YLkvc6PZ2ErLqVu0JeIBes?= =?us-ascii?Q?YqmScqvCyaBhSSHu9wWkjcoGWn97GKtCWYR1IPHUj/BxciN1PxnO4gawPLO8?= =?us-ascii?Q?wPtho5RQIA=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MW5PR11MB5908.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: adf243d6-44e7-4374-ed2b-08da22e96206 X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Apr 2022 16:18:19.3535 (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: 7j9c+UEIzWlW4WKjYQ8VD//3aIuI44fEuCIumZBqvxbJo9Jm7qB2Q5YlVsT378MpXR8RMz7gKNV2Nd0NI6VM3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR11MB5179 Return-Path: ankit.sinha@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ankit Sinha > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Michael > Kubacki > Sent: Monday, April 18, 2022 6:27 PM > To: devel@edk2.groups.io > Cc: Michael Kubacki ; Desimone, Nathaniel > L ; Sinha, Ankit > Subject: [edk2-devel] [PATCH v1 1/1] PrmPkg/DxePrmContextBufferLib: Fix > unit test GCC compilation errors >=20 > From: Michael Kubacki >=20 > https://bugzilla.tianocore.org/show_bug.cgi?id=3D3905 >=20 > Fixes GCC compilation errors in DxePrmContextBufferLibUnitTest.c. >=20 > Cc: Michael Kubacki > Cc: Nate DeSimone > Cc: Ankit Sinha > Signed-off-by: Michael Kubacki > --- >=20 > PrmPkg/Library/DxePrmContextBufferLib/UnitTest/DxePrmContextBufferLi > bUnitTest.c | 28 +++++++------------- > 1 file changed, 10 insertions(+), 18 deletions(-) >=20 > diff --git > a/PrmPkg/Library/DxePrmContextBufferLib/UnitTest/DxePrmContextBuffer > LibUnitTest.c > b/PrmPkg/Library/DxePrmContextBufferLib/UnitTest/DxePrmContextBuffer > LibUnitTest.c > index e244e7b09575..fdc32993b82d 100644 > --- > a/PrmPkg/Library/DxePrmContextBufferLib/UnitTest/DxePrmContextBuffer > LibUnitTest.c > +++ > b/PrmPkg/Library/DxePrmContextBufferLib/UnitTest/DxePrmContextBuffer > +++ LibUnitTest.c > @@ -237,17 +237,17 @@ NullPointerArgumentsShouldFailGracefully ( > PRM_MODULE_CONTEXT_BUFFERS *ModuleContextBuffersPtr; >=20 > UT_ASSERT_EQUAL (FindContextBufferInModuleBuffers (NULL, NULL, > NULL), EFI_INVALID_PARAMETER); > - UT_ASSERT_EQUAL (FindContextBufferInModuleBuffers (NULL, > &ModuleContextBuffers, &ContextBufferPtr), EFI_INVALID_PARAMETER); > - UT_ASSERT_EQUAL (FindContextBufferInModuleBuffers (&Guid, NULL, > &ContextBufferPtr), EFI_INVALID_PARAMETER); > + UT_ASSERT_EQUAL (FindContextBufferInModuleBuffers (NULL, > + &ModuleContextBuffers, (CONST PRM_CONTEXT_BUFFER > + **)&ContextBufferPtr), EFI_INVALID_PARAMETER); UT_ASSERT_EQUAL > + (FindContextBufferInModuleBuffers (&Guid, NULL, (CONST > + PRM_CONTEXT_BUFFER **)&ContextBufferPtr), > EFI_INVALID_PARAMETER); > UT_ASSERT_EQUAL (FindContextBufferInModuleBuffers (&Guid, > &ModuleContextBuffers, NULL), EFI_INVALID_PARAMETER); >=20 > UT_ASSERT_EQUAL (GetModuleContextBuffers (ByModuleGuid, NULL, > NULL), EFI_INVALID_PARAMETER); > - UT_ASSERT_EQUAL (GetModuleContextBuffers (ByModuleGuid, NULL, > &ModuleContextBuffersPtr), EFI_INVALID_PARAMETER); > + UT_ASSERT_EQUAL (GetModuleContextBuffers (ByModuleGuid, NULL, > (CONST > + PRM_MODULE_CONTEXT_BUFFERS **)&ModuleContextBuffersPtr), > + EFI_INVALID_PARAMETER); > UT_ASSERT_EQUAL (GetModuleContextBuffers (ByModuleGuid, &Guid, > NULL), EFI_INVALID_PARAMETER); >=20 > UT_ASSERT_EQUAL (GetContextBuffer (NULL, NULL, NULL), > EFI_INVALID_PARAMETER); > - UT_ASSERT_EQUAL (GetContextBuffer (NULL, &ModuleContextBuffers, > &ContextBufferPtr), EFI_INVALID_PARAMETER); > - UT_ASSERT_EQUAL (GetContextBuffer (&Guid, NULL, &ContextBufferPtr), > EFI_NOT_FOUND); > + UT_ASSERT_EQUAL (GetContextBuffer (NULL, &ModuleContextBuffers, > + (CONST PRM_CONTEXT_BUFFER **)&ContextBufferPtr), > + EFI_INVALID_PARAMETER); UT_ASSERT_EQUAL (GetContextBuffer > (&Guid, > + NULL, (CONST PRM_CONTEXT_BUFFER **)&ContextBufferPtr), > EFI_NOT_FOUND); > UT_ASSERT_EQUAL (GetContextBuffer (&Guid, &ModuleContextBuffers, > NULL), EFI_INVALID_PARAMETER); >=20 > return UNIT_TEST_PASSED; > @@ -322,7 +322,7 @@ InitializeFunctionalCorrectness ( >=20 > **/ > STATIC > -UNIT_TEST_STATUS > +VOID > EFIAPI > DeInitializeFunctionalCorrectness ( > IN UNIT_TEST_CONTEXT Context > @@ -332,7 +332,6 @@ DeInitializeFunctionalCorrectness ( > PRM_CONFIG_PROTOCOL *PrmConfigProtocol; > PRM_CONTEXT_BUFFERS_TEST_CONTEXT *TestContext; >=20 > - UT_ASSERT_NOT_NULL (Context); > TestContext =3D (PRM_CONTEXT_BUFFERS_TEST_CONTEXT *)Context; >=20 > Status =3D gBS->HandleProtocol ( > @@ -340,7 +339,6 @@ DeInitializeFunctionalCorrectness ( > &gPrmConfigProtocolGuid, > (VOID **)&PrmConfigProtocol > ); > - UT_ASSERT_NOT_EFI_ERROR (Status); >=20 > if (!EFI_ERROR (Status)) { > Status =3D gBS->UninstallProtocolInterface ( @@ -348,13 +346,10 @@ > DeInitializeFunctionalCorrectness ( > &gPrmConfigProtocolGuid, > PrmConfigProtocol > ); > - UT_ASSERT_NOT_EFI_ERROR (Status); > if (!EFI_ERROR (Status)) { > FreePool (PrmConfigProtocol); > } > } > - > - return UNIT_TEST_PASSED; > } >=20 > /** > @@ -382,7 +377,7 @@ VerifyGetModuleContextBuffers ( > ContextBuffers =3D NULL; > TestContext =3D (PRM_CONTEXT_BUFFERS_TEST_CONTEXT *)Context; >=20 > - Status =3D GetModuleContextBuffers (TestContext->GuidSearchType, > TestContext->Guid, &ContextBuffers); > + Status =3D GetModuleContextBuffers (TestContext->GuidSearchType, > + TestContext->Guid, (CONST PRM_MODULE_CONTEXT_BUFFERS > + **)&ContextBuffers); > UT_ASSERT_STATUS_EQUAL (Status, TestContext->ExpectedStatus); >=20 > if (!EFI_ERROR (TestContext->ExpectedStatus)) { @@ -419,14 +414,12 @@ > VerifyFindContextBufferInModuleBuffers ( { > EFI_STATUS Status; > PRM_CONTEXT_BUFFER *FoundContextBuffer; > - PRM_MODULE_CONTEXT_BUFFERS *ContextBuffers; > PRM_CONTEXT_BUFFER_TEST_CONTEXT *TestContext; >=20 > - ContextBuffers =3D NULL; > FoundContextBuffer =3D NULL; > TestContext =3D (PRM_CONTEXT_BUFFER_TEST_CONTEXT *)Context; >=20 > - Status =3D FindContextBufferInModuleBuffers (TestContext->HandlerGuid, > TestContext->ContextBuffers, &FoundContextBuffer); > + Status =3D FindContextBufferInModuleBuffers (TestContext->HandlerGuid, > + TestContext->ContextBuffers, (CONST PRM_CONTEXT_BUFFER > + **)&FoundContextBuffer); > UT_ASSERT_STATUS_EQUAL (Status, TestContext->ExpectedStatus); >=20 > if (!EFI_ERROR (TestContext->ExpectedStatus)) { @@ -465,14 +458,13 @@ > VerifyGetContextBuffer ( { > EFI_STATUS Status; > PRM_CONTEXT_BUFFER *FoundContextBuffer; > - PRM_MODULE_CONTEXT_BUFFERS *ContextBuffers; > PRM_CONTEXT_BUFFER_TEST_CONTEXT *TestContext; >=20 > - ContextBuffers =3D NULL; > FoundContextBuffer =3D NULL; > TestContext =3D (PRM_CONTEXT_BUFFER_TEST_CONTEXT *)Context; >=20 > - Status =3D GetContextBuffer (TestContext->HandlerGuid, TestContext- > >ContextBuffers, &FoundContextBuffer); > + Status =3D GetContextBuffer (TestContext->HandlerGuid, > + TestContext->ContextBuffers, (CONST PRM_CONTEXT_BUFFER > + **)&FoundContextBuffer); > + > UT_ASSERT_STATUS_EQUAL (Status, TestContext->ExpectedStatus); >=20 > if (!EFI_ERROR (TestContext->ExpectedStatus)) { > -- > 2.28.0.windows.1 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#89042): https://edk2.groups.io/g/devel/message/89042 > Mute This Topic: https://groups.io/mt/90553692/1772825 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub [ankit.sinha@intel.com] > -=3D-=3D-=3D-=3D-=3D-=3D >=20