From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (NAM11-BN8-obe.outbound.protection.outlook.com [40.107.236.100]) by mx.groups.io with SMTP id smtpd.web10.40198.1683165514015483678 for ; Wed, 03 May 2023 18:58:34 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=YKTT0U3F; spf=pass (domain: os.amperecomputing.com, ip: 40.107.236.100, mailfrom: minhnguyen1@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W2IE2SI92CIbhOH0SrkyIEIgEO5D14ewM/lsv1b5HfWyoZWE2MSKGHXmEE7iAJYSAAXHFkC+vC6C60COlfl89igrZg3XzMt8QfBUHYv6HdG/Aivgwrdmj+pw0wShYZNxrL3J1UXf5WinWWRUGzFL8AjI5rmc4x0/sqpoAIW6NA+So39/8mjSyGgEJNmNmKimaak0G+1AhwSZoiZLJPiwjMgYuC82B9gTxGHULGdjrCyZ/bVnkombEaWgpnPfkjBE+qSY6DLgPaHryMOd8SxJZ6P912tAp8ygJYVQ1whbWKGTbWEx31VSeGN1JnfwWQa27GWREk9w6VujtBdB0XOPaw== 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=Bxq8DphTbO9/v9pfP+PWTvfYtt0v6bP1ObFsFT0Mmes=; b=a1sk1mTSpgCEYCE50fVqBa5OGa5gWm4SyLimgHTPbIItyyqsD0Xdr72BF/hBERXuNSFeSvxSnCCNBe9jOk+Va5pgs9NNy/GhsAo96JgouxTob0LXPav06/0avfI0DSXyHvKrpT2BIA3a5ecLr2NfranFLkhaGW65qmEHaA40HH7fy3AVdSMT57Msj6de5bDPa5jaIKpCbdDd8RqDgeN21x/2N4K/G99wHWbxqAyeWMvBZPUvlpPOnNinabx3OmMxP1APV1pYvqcgbSKBt3ahbNYxE7p4yuBn91K0hmL9zku+0OCXRvtHusuR3SW4W4vJS287Yw0dcuoOsfcnvnBcPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Bxq8DphTbO9/v9pfP+PWTvfYtt0v6bP1ObFsFT0Mmes=; b=YKTT0U3FgrlH/FZQkIZcQg82ybS58HrZXs+HlYMpwVUkpR4SZoPH5TIULWiFekLWnwK7ku60UvZHcsjn32cG6vXAjygBN03iZlQxDIGl9cq2Q2Hkt4PVav1HBtMIRKDc+21E2puB+meILHK7HquUvj3Bb6Hj51iavtlWMWIcN8k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SJ2PR01MB8049.prod.exchangelabs.com (2603:10b6:a03:4ce::10) by DM6PR01MB5978.prod.exchangelabs.com (2603:10b6:5:1df::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.22; Thu, 4 May 2023 01:58:29 +0000 Received: from SJ2PR01MB8049.prod.exchangelabs.com ([fe80::b8:5d56:7d04:223a]) by SJ2PR01MB8049.prod.exchangelabs.com ([fe80::b8:5d56:7d04:223a%3]) with mapi id 15.20.6340.030; Thu, 4 May 2023 01:58:28 +0000 From: Minh Nguyen To: devel@edk2.groups.io CC: patches@amperecomputing.com, abner.chang@amd.com, nicklew@nvidia.com, igork@ami.com, nhi@os.amperecomputing.com, Minh Nguyen Subject: [v1 PATCH 0/5] Adding necessary changes for RedfishPkg Date: Thu, 4 May 2023 08:57:49 +0700 Message-ID: <20230504015754.1352305-1-minhnguyen1@os.amperecomputing.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SG2P153CA0037.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::6) To SJ2PR01MB8049.prod.exchangelabs.com (2603:10b6:a03:4ce::10) Return-Path: minhnguyen1@os.amperecomputing.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ2PR01MB8049:EE_|DM6PR01MB5978:EE_ X-MS-Office365-Filtering-Correlation-Id: c3ad91a1-c38c-4c39-9a2f-08db4c430da5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YB+IE7bp2EHBjgqnEKEeQU8PqE0MhOSKR+FwLil6UAICp8ns7fLhUrHSWvCCR/F9vXHKhVku5UOzhL4k6Zqj2JYNhVHkAZTozeP6i04Nl1LElI7oWc5NGvdO/q/x6z8OM+5eBKzmwHC0km4iRrdubG0B9WXtZ2o2SIDgF+o8V7BSE9TqDrWlbj9jdNmz6zciOisG4wOm8t/evRJHJlaXneGVGBfR1/Li6vI0ozKkcc++PjlPYDpBo/T9joEgv/4W69vm8tuxPpcUmOi/FgT0S/MrKIpT0U48APzDQH1fuKMmi7p7edNRG6YqA4FFBB4IOrYGCwYc8HWOqEdFm9Dk6gVcXgAFkQYbrYT7cCu1eFOCiDms/RG5y3J/B6CdH+DChB+OQIlqhnQQBEkiq9VpWNoo3BC937Gbzha9upjnSMYb0K4/YgpYjKoUmNj7n4mZ22ZyaH4g0+yUQeYaysK7uvoqLNF0pHo/4S7DxGNqXLCLd63VROqf/MlIyGNve6ljK8vQ5gX/gLMrDlgmKePZGgPUYbK8Z1ab2PpXzswN7c/IWrRtSFadikeIarPRMa9E6nOQsG5ZjuyQt4BQxSO4jBt4tPp6ZRo0dOlwTHtBXpla75GkrK9jhwKUitg1bBLH X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ2PR01MB8049.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(366004)(396003)(346002)(376002)(39850400004)(136003)(451199021)(8676002)(8936002)(52116002)(41300700001)(6666004)(4326008)(66946007)(66476007)(66556008)(6916009)(86362001)(38100700002)(478600001)(316002)(38350700002)(6486002)(4744005)(2906002)(2616005)(5660300002)(6512007)(6506007)(26005)(1076003)(186003)(107886003)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?t+K2IZvETLMpwGKGuQYRpW4yj3XxTKGdYzNfqXNK8tZZ7z9eYhWk6sj+0xi1?= =?us-ascii?Q?ms7IocFFp8Qfi0MJUGJIYC8Mtiupo5eUcflS5PXSm4Vn30Z8x0Gc8r+RYcyh?= =?us-ascii?Q?h9aKLT3Nu0e231i9rA+EypfrJNXwcmGLT6kHmdqWD2CVUEMU7e1ZklFuD95Y?= =?us-ascii?Q?a3bl6unxchJosiiVgWC+iEDyYPzQONvfGgEKHbib58qiNvZ0qkiItq+5Eynf?= =?us-ascii?Q?wFEHQk8vTX/Nj9WyURCOJw5wqCoCbHcr2Dt2fu+nwX3Zai/do0Cw3r/35Nv5?= =?us-ascii?Q?Daua2OEb3OEUqg1Hijr2t997NfcGsNCRmJIl3/Q2y/aNguX15F9swaHC57Z/?= =?us-ascii?Q?xPpiCcdM7bCyiO0FYlqVNhQCYZUTdafRLnK7dL1i7yWXvZBVhEtNjMrhcJOG?= =?us-ascii?Q?C2dl7LrZZxMx/4QrokGImZuW88Dq/Ql80wpQbksYAFKc9VgxaEiTYv6oNzHl?= =?us-ascii?Q?U3LYVxAPTtn+IG0hYt9X71bB+gD9TNHcbXI1JjLDLHVePU/qmtH5O82hrgqX?= =?us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mwu7vft8hwPt9hWQU4nGE0yK0nC6f?= =?us-ascii?Q?QsPTsevYukKLb8plqMNciOZDqKwlc30nEhxZIq9t7XfTTkRNYL0j5FDa8Gu+?= =?us-ascii?Q?Ucxv3p+YRyI01e+WdVvfIBnV6qCJ9ZoKUraa5M5oIWmryOrhXmGKjvVHaMAg?= =?us-ascii?Q?WTNPboQhpVF8plqSw96eX5HRtwZT5SK1zyM/7bntTfBIkTQJ5rT6hR3x9PsL?= =?us-ascii?Q?Kacf5ztMMCO8kpu9UaJDyiHrOyD+1sMUPNC9O/GF/o0h?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3ad91a1-c38c-4c39-9a2f-08db4c430da5 X-MS-Exchange-CrossTenant-AuthSource: SJ2PR01MB8049.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 May 2023 01:58:28.2501 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 2WDvvxLT7guHM5fpo68KDRSFhO8InsfKsx0yYf93lYL1Wl3cgcOerenX5lgxIgr7bFJ9r55L1OVja3Xg/TJwbztC2co6XaN15iGJZn+Sx7hgzTQbjjpny42j0N+mVsxn X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR01MB5978 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain This patchset adds necessary changes for RedfishPkg to avoid some unexpecte= d cases and fix compilation. Changes since v1: + Remove redundant change and change the commit message for more precise i= n PATCH 2/5. Nhi Pham (1): RedfishPkg: Add missing newline character Vu Nguyen (4): RedfishPkg: Correct variable type to prevent memory corruption RedfishPkg: Fix condition checking of error status RedfishPkg: Create RestEx child on selected interface RedfishPkg: Fix compile issue on Linux RedfishPkg/Include/Library/RestExLib.h | 3 + RedfishPkg/Include/Pcd/RestExServiceDevicePath.h | 5 +- RedfishPkg/RedfishRestExDxe/RedfishRestExDriver.h | 3 +- RedfishPkg/Library/DxeRestExLib/DxeRestExLib.c | 153 +++++++= +------------ RedfishPkg/RedfishDiscoverDxe/RedfishDiscoverDxe.c | 4 +- RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.c | 3 +- 6 files changed, 73 insertions(+), 98 deletions(-) --=20 2.39.0