From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (NAM12-BN8-obe.outbound.protection.outlook.com [40.107.237.136]) by mx.groups.io with SMTP id smtpd.web11.19403.1683259150155122814 for ; Thu, 04 May 2023 20:59:10 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=AihIN3jd; spf=pass (domain: os.amperecomputing.com, ip: 40.107.237.136, mailfrom: minhnguyen1@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MHHUN5WSCDc/lPkgGVSeJxYnuEzB69HXQTOrlljvVvdYxBrj0N2/WeCfVEbprbXBfnamP+0DJFiDtZZzHx07GRQ8gb3vRv6mnNoH30hHrlPYWojI1RPspajnJ++Sxp56iteH/CXxp7ggmX46F6ZEHomUQsFAttjyojtESt0esMFrO0Wnf1cLtZw9a1CXWmsJzx5h2QibJ47u2BsIwWF9LVyIwmz7oFeBfWalhA6clvoCvdTaPNh3FmD29dZUj9jzsKBP3ARb5WkHtUcgRWlrEztpkejnGWb800i4bf/ZU0AB+5kIWnRkmvb3sXdTMxlyAvWBMCY1TvvjFeL8B/6tBg== 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=Jh4UCFi3rgn5dNgMwlvoJsaOGmXOGa8O9eQW0uYisHY=; b=OEseXcx4lkqMWjVqv4Stka86GzrdbbBQlYUh4OJyDychKkXQ7xahcfD0y1jgWSZJGw+9E58n4+Kq+snTCU0j/9bldKBWyw2gvxc0wbZ/mfmRcKR3OyCdc/e1pd6WMfegSPKmW49IPi3nJjzeDtLbqHSuiBl7WELZC4/6eMsUVGXSHzv38P5eaN+45UZbnmFgwgcDTKT5fK/sGjrGMyebmBpMgG/H57MwWhEUMs50U1YBkQE5bozV9Q+OBiGxTh1JPbHMNlL7PrVWHN5b9on9/0voC9WecFvabweqIFFXr/TR9P78BKkg4+nklUvidIRYyOp4ND5ZQ3105k3S2Ph7Rw== 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=Jh4UCFi3rgn5dNgMwlvoJsaOGmXOGa8O9eQW0uYisHY=; b=AihIN3jdbOICZrGFCR5pao8VwEbaDvBIrEySVfd4cqUD8FKxTJ0g6oz05OaubV901UWnCiqu7mIAMB1pKfqtrDsMtX91lEoc8IaZrDFwDa6bQKbse9hReW+iZr55nZggZp8jMK09WC6Ze836o9p3OSsILs2EWWzV3E72ogjcJGM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from PH0PR01MB8048.prod.exchangelabs.com (2603:10b6:510:280::7) by PH7PR01MB7725.prod.exchangelabs.com (2603:10b6:510:1d5::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.26; Fri, 5 May 2023 03:59:08 +0000 Received: from PH0PR01MB8048.prod.exchangelabs.com ([fe80::bbdb:b58c:140e:c4e1]) by PH0PR01MB8048.prod.exchangelabs.com ([fe80::bbdb:b58c:140e:c4e1%7]) with mapi id 15.20.6363.026; Fri, 5 May 2023 03:59:08 +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, Vu Nguyen , Minh Nguyen , Nick Ramirez , Abner Chang Subject: [PATCH V3 5/5] RedfishPkg: Fix compile issue on Linux Date: Fri, 5 May 2023 10:58:24 +0700 Message-ID: <20230505035824.1466954-6-minhnguyen1@os.amperecomputing.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230505035824.1466954-1-minhnguyen1@os.amperecomputing.com> References: <20230505035824.1466954-1-minhnguyen1@os.amperecomputing.com> X-ClientProxiedBy: SG2PR02CA0107.apcprd02.prod.outlook.com (2603:1096:4:92::23) To PH0PR01MB8048.prod.exchangelabs.com (2603:10b6:510:280::7) Return-Path: minhnguyen1@os.amperecomputing.com MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH0PR01MB8048:EE_|PH7PR01MB7725:EE_ X-MS-Office365-Filtering-Correlation-Id: fd779065-7747-4ed4-c8cc-08db4d1d136d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BEn+xMgpU/Yi5n++j34khykLmR2u6i9f3E6ANT13iMgK61gprMVA395FMirrGIUZ45s1ocLBmWlPku2I9OVTuKi7Y/A9/miig9cx0c1LkqacWmzzTseDfnxfmXrvKug6R6P2b4/M4le3AyjcZDhgamrrdq6aSIab25eDwxUAkU4PjRBhk3vueF5qoAppzUv5adPxqNItr81rUZxfMKsN60HpppZXN0bbY5oB511jxFmMwdGdsmhRrset0IdzFPmTurK03qtdPOg/QKlAnNaruZaq2CN0iLIas9yNlES+vI/c9IU4pUOiGtsHOWZcBaTbQ9rD0xUHxDYmqS2dPxH4+XbnyVhEVo0Cuxx9cDrnDW7dsU3uk1MjRMirA2aY8PPjlWwCVdf2aWenybAFHd48LWHnxZCMILNmdzWKI84I0stwUcEQy8y+H27mrPzYvUDoT7Rl5Uq6AMud0FlhfNGtUKJFZfB2aI/9EU2LWKRrqGYm27xfsTtp4rnQAZUqw1bG9FK2MMbsdxWOQF1whegx+FIo6rm7QCRZAr8I5g0wfCoQV+FartZ1xcRVoXLlr4RvB0qenmi/JF7NU87I/ZZ79Zf41RrD0GxCsbmGt3exdVAZtbaH/qVxDLWc8CrXSv3J X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR01MB8048.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(39850400004)(366004)(396003)(346002)(376002)(136003)(451199021)(86362001)(54906003)(316002)(66556008)(66476007)(6916009)(4326008)(6486002)(66946007)(6666004)(52116002)(478600001)(41300700001)(8676002)(5660300002)(8936002)(2906002)(38100700002)(186003)(38350700002)(2616005)(6506007)(6512007)(26005)(1076003)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ax2H7odppeJTFOnUE0MxDdcoZMbxXC1tmYEP4xND1cHwfpqekC7doZt7WOhL?= =?us-ascii?Q?lR56u4rBUy/BXmn/xo1ucq7n76at+aeuvYNZ38e3nhO1m6cUsHzjkwLmwvKC?= =?us-ascii?Q?jgxLlvlHBJ489PIevxWCv/Ar+4xHKQ/KLODrQsA2fJb+/JkVvtixEmrZFujx?= =?us-ascii?Q?7b+2ylA4ZrAw4pv4td2mIxdnb+xrc7XineoIyjbzLNWfruzrH+VAR2IYygKr?= =?us-ascii?Q?SE7aAYyq+vKDs+a7ZKV8Triu7h6CM2gQ0emYjrz/siQBU+/BclR9cE7Ml/6M?= =?us-ascii?Q?A4l1knNL4/yU9mEH6ZHrgxw81IiYG0NECTvz3VF15foQwMBsT9HNhpmMOKdj?= =?us-ascii?Q?/x22O2YI/EmgQcWAO8Dtp205YX0Y35EfoPp1gyQeR0hUPwlcnteKBwvWJ12i?= =?us-ascii?Q?Ykav1te0W2sbDw8CmtmfsGXRFnZNKB1g3rOqb9P39VZ+pGAWzWrmGjEQaOhA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Hfkn6rk7cNRHBBuRPHjvNGrE/yhUXoWFBVrY5m?= =?us-ascii?Q?STi06aIUGoudTsAJHdmAZ1OWbnzoz7pGEseeamq0QhwMCbY2X4NwlfRusBk6?= =?us-ascii?Q?bWM+QHBH3vDwzvLb/NXLadU3ofJs+LXSe3JmPty26VxTAuhotgFrM6lmhF1P?= =?us-ascii?Q?ODHCUnjh7PQwMkfxyGZUC612yqRQIjTZUx42KPGRe48YScjRP8O1N4EuofwG?= =?us-ascii?Q?vaQGzPznj5DFA1lAnQ9WhoSocR3bRU3R0TvJTufLdWnkMs3Fv2pbtJGGfn6I?= =?us-ascii?Q?B++F1Jt0/HKAfjGNgrOiXJTmz4J8D0OJE+uWrLUF/mFW?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: fd779065-7747-4ed4-c8cc-08db4d1d136d X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB8048.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2023 03:59:08.0238 (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: 61hY71JClqzR9z1xXsjHlKo6O6nMdoStazKdnSmz2zIjHUCYKGLxtf6EpCmVVyKo9wa3WsO8ZB+PwIIlFSBV1VLe0B4OByjvUhVZWxmEai9od4xQ4jAyCWWYgSEcS/M2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR01MB7725 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain From: Vu Nguyen It requires a fixed size array to store the content of device path PCD. Add the array size to solve this issue. Signed-off-by: Minh Nguyen Cc: Abner Chang Cc: Igor Kulchytskyy Cc: Nick Ramirez Reviewed-by: Abner Chang --- RedfishPkg/Include/Pcd/RestExServiceDevicePath.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/RedfishPkg/Include/Pcd/RestExServiceDevicePath.h b/RedfishPkg/= Include/Pcd/RestExServiceDevicePath.h index 91b1198297c2..57fc199f61f2 100644 --- a/RedfishPkg/Include/Pcd/RestExServiceDevicePath.h +++ b/RedfishPkg/Include/Pcd/RestExServiceDevicePath.h @@ -4,6 +4,7 @@ =20 Copyright (c) 2019, Intel Corporation. All rights reserved.
(C) Copyright 2020 Hewlett Packard Enterprise Development LP
+ Copyright (c) 2023, Ampere Computing LLC. All rights reserved.
=20 SPDX-License-Identifier: BSD-2-Clause-Patent =20 @@ -14,6 +15,8 @@ =20 #include =20 +#define MAX_DEVICE_PATH_NODE 40 + typedef enum { DEVICE_PATH_MATCH_MAC_NODE =3D 1, DEVICE_PATH_MATCH_PCI_NODE =3D 2, @@ -32,7 +35,7 @@ typedef struct { // 0x03,0x0b,0x25,0x00,0x00,0x50,0x56,0xc0,0x00,0x02,0x00,0x00,0x00,0= x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0= x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01, // 0x7f,0xff,0x04,0x00} // - EFI_DEVICE_PATH_PROTOCOL DevicePath[]; + EFI_DEVICE_PATH_PROTOCOL DevicePath[MAX_DEVICE_PATH_NODE]; } REST_EX_SERVICE_DEVICE_PATH_DATA; =20 #endif --=20 2.39.0