From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (NAM10-MW2-obe.outbound.protection.outlook.com [40.107.94.90]) by mx.groups.io with SMTP id smtpd.web11.4335.1681460386139951823 for ; Fri, 14 Apr 2023 01:19:46 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=U6yz8FiS; spf=pass (domain: os.amperecomputing.com, ip: 40.107.94.90, mailfrom: minhnguyen@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VCgsclexkcH2hQwbJURYhXeck62k0meKL5SieZk8//JL8qbkkdTfWYfWtIdKDAgFR+SylvCZAMjcrWMBa0X6qulWsCH7L2AFGOtb/PXtAfT3FJspswzlarkeZRQnwuXjyaVXMaDIMFSQyurfi3gj0YViclbdThLHLuUfEGktJdm8eGXvYK+pw+fkCxzx8GTztBp9DifIMK8NQY6Y8GAoisMHcc/5yfecknki5yw6eON0Dv3+nMF4ZlkL7bWtqxqykbiVaPHoa3zjmTZ2FA2gQV+shOsgSB8U1WGyfQKCrfNpYw9VZr6up06WhFSKQqzbcXxQKSzMBzo33i4lFl3C/w== 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=ON6NfI7CRCdzw0M3xiy6HcsrFdFIHRlBchT2QGuq9YI=; b=HBjlrGi3TmNarHnAvFWFU9hH0p4CwxrIqN5Wkv5F5S2zKJNh7ysMFJp66XmQSLOaOLijk9T/RK3GAIZWAL7nmXg3tPy+bZCYw94bIg5GDtKRYCO1AB3zJ0hwcpT1Azcq+xD35hhOMG3dT3Z119bxka22CFLXbK9CVt7uswm2A361CVMpo0FYxC4syrec+1v0+xSn2okUwzvsUO06LXXmAU4e9gcB2qqPQUfRvJrJNF/emPOvXpEyGzmjYTljuQojp5DF736Alx5OPeljaJGen09ZSuSTHuomO2H7VYmPvhVCBNrK9cbQiwK44pi6d7iLshckJxHPsca61cncMnsCXA== 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=ON6NfI7CRCdzw0M3xiy6HcsrFdFIHRlBchT2QGuq9YI=; b=U6yz8FiSPhfJ2Mb8z+bGjZubiv5wqHU+Vjhuk1OeaKlDziDzDa5EpnSdD52oHIlRqf8uCNnQzRzGxtXflcjjvWWCMfKQ62X2cMYkTHyeVS/dXq07mMagE/9C8tbIiWtivg7whG0nfxTDEP5AzPdhAhoS1D/5abBR6uweT7jh69I= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from BYAPR01MB4038.prod.exchangelabs.com (2603:10b6:a03:5b::28) by LV2PR01MB7599.prod.exchangelabs.com (2603:10b6:408:17c::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.6; Fri, 14 Apr 2023 08:19:43 +0000 Received: from BYAPR01MB4038.prod.exchangelabs.com ([fe80::ca46:c19a:9542:40a6]) by BYAPR01MB4038.prod.exchangelabs.com ([fe80::ca46:c19a:9542:40a6%7]) with mapi id 15.20.6298.030; Fri, 14 Apr 2023 08:19:42 +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, tinhnguyen@os.amperecomputing.com, Minh Nguyen Subject: [PATCH 0/5] Adding necessary changes for RedfishPkg Date: Fri, 14 Apr 2023 15:18:58 +0700 Message-ID: <20230414081903.7892-1-minhnguyen@os.amperecomputing.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SI1PR02CA0037.apcprd02.prod.outlook.com (2603:1096:4:1f6::13) To BYAPR01MB4038.prod.exchangelabs.com (2603:10b6:a03:5b::28) Return-Path: minhnguyen@os.amperecomputing.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR01MB4038:EE_|LV2PR01MB7599:EE_ X-MS-Office365-Filtering-Correlation-Id: 53a5964d-d570-4f7b-5904-08db3cc0fecb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0VHJX7UyHTeVHxlZdWCzVu3CyLu7gsz2YfVGQtPLVtvbTd+yfPc710VjQHW/trJe3lMhYCvpBQhFiHSuj0IlPn7XIADTJniD2yqPHSh++QUI8BTN3j+Ud4fttkY7ajJKPLgy9s3OPksGYgXg8onjhU2nXk0AQL93yBQtibzvbai7we+GvXIiCXLq1g5r+Q6JjyQ4VPsixz9JOxmidFE9TkxkSpAetekoUHEGo1AsabG00ASBXU5Yl8qLGPmph28b0L7ZLV2GvvI7jiHO8w6aLciLnlIsJ40uEKnnRdBhWpFnlPRgzFce1EZws6ZFFx1ZBB5EuacUWcBwYDu8q9GK/DNWA3hzhjSMww8r5o5wVjl7uudAZbs8+iyCwsF22J0dLv2ThNQFKVQE3TIuXRfv2NonbOJFrk3uRWTFecFYBMlpy9+FleemONG4wn/bnBlUtbhF3x5p3NH0WNxUgvUVjVcQSVt+BbZCcMPJ4mNeOOpAa7G+uguMEMjNM+wmb3b4WpJ51SruYYTHnGdrDE2fbK6HJ5Ntu2eoxztEAxmL0xYMVkx9R5+tVPw9Y0yDN++prSS2XO3oAU543BmEUWOi4hwgyTNsurJGPB8pvC/cctAV3L1TBtP0pcf/+V93OJqs X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR01MB4038.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(346002)(376002)(136003)(39850400004)(366004)(396003)(451199021)(478600001)(107886003)(8676002)(8936002)(6666004)(86362001)(26005)(1076003)(6512007)(6506007)(38100700002)(316002)(38350700002)(52116002)(6486002)(186003)(6916009)(4326008)(66556008)(66476007)(66946007)(41300700001)(83380400001)(5660300002)(2906002)(4744005)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?x94eNJOie2tE2NbA3Qg0MkVINPHZ+EuKLz3EwFAE6n+KzX23/OiSjLipIesa?= =?us-ascii?Q?TAKA9dufPtzUCkuyNx+1/nm0l6s0Ewq75n8kxzPxkMFUB2jjqA7F3qtWCfju?= =?us-ascii?Q?lyHUz9NBL+ii3r4pSZeZ65eWJ80T9e1vFgQFFEnAt3wuiD34Rei/wTQOYleH?= =?us-ascii?Q?alOlF0uMgvqQFKtjDm0fgZjew1m/2KINBJFtPTNeybP5Ic70NL4mXRCbqRNn?= =?us-ascii?Q?uDpyIgKe5OWa5fxTLNJJPrcxP68n0i296GA9veLwZIz8l8OnMxONsOszb5pU?= =?us-ascii?Q?myVOzGfgvsS7i8d9H2dQD6fykYSd+gqjrCtr2IhA1iuy7ZFEvjdaTod2MEMb?= =?us-ascii?Q?CtrPITzTogn4KS8k/xtToCrHGTNpVDMDbUQ0wipB8Zk6hR9Jbj8r1iYbvVQ+?= =?us-ascii?Q?rag0F8IYu1XAveVr2Iy0y6UzXVpBUcjmDQ4GkzI8knFgsnvzKk41u42Nu/pU?= =?us-ascii?Q?niwAH+H83iK9svgiw/siFZ5M+Ql7ZeA1gjOMKOuafAm3wKXliWX89OUKOtk4?= =?us-ascii?Q?gr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igMMutbkLKRAxog?= =?us-ascii?Q?spe9/raJM38PuqnCTeNGMqtuNm7fuOetPSV5m2vxeZBiCbdCRezDxorihFYW?= =?us-ascii?Q?cI3POENCUmb0+VWWux60dXS6Pa2Dei9CX8G72Ag7jyVnpgyYj1Iyoy99E2lV?= =?us-ascii?Q?J0vnq5fouAbN+6fzDGazg8/6kSLmPyKWqBvmiDrzxSvKeoiIi5GAOGFn47zU?= =?us-ascii?Q?wJNZPq+LzNF5ydLFG/Oe5kv9UEVPKq1Uz/XYE5eJhWkM?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 53a5964d-d570-4f7b-5904-08db3cc0fecb X-MS-Exchange-CrossTenant-AuthSource: BYAPR01MB4038.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2023 08:19:41.5654 (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: qRd1i5Gab21AmmRqhkRDvT99kNfVL1ODhUKDl+irEGM6XmiTr/RDUbZuwiviLd/jP6J9qaX43/V+i+yPXYh1U/OwxoFb3bovs/kFKvezAt++EopuUPOi2GP4h4pPQ60Q X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR01MB7599 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain This patchset adds necessary changes for RedfishPkg to avoid=20 some unexpected cases and fix compilation. Nhi Pham (1): RedfishPkg: Add missing newline character Vu Nguyen (4): RedfishPkg: Correct variable type to prevent memory corruption RedfishPkg: Prevent assertion of allocate zero length region 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 | 6 +- RedfishPkg/RedfishHostInterfaceDxe/RedfishHostInterfaceDxe.c | 3 +- 6 files changed, 74 insertions(+), 99 deletions(-) --=20 2.39.0