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.132]) by mx.groups.io with SMTP id smtpd.web10.4248.1681460410670090408 for ; Fri, 14 Apr 2023 01:20: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=EOjZ2j55; spf=pass (domain: os.amperecomputing.com, ip: 40.107.94.132, mailfrom: minhnguyen@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VbRn8n3LBsHGQuFYVIjnyQ3vj67eSqviYJKKrJwaCG8z5czNfOA7X1Nwgb3ASBzI1gY7XdWyo46rIW5T1fMOOSPWs0/5SswoN4L12CKm1Dsr8NvICstlquqEX+C72Qcb+gYi0Knks5R2QUxWvJGkD/Kg6LdIcmyoH7gszRghM/RZp+4823nZ9tw5RbSc78qxsZLL0ClSw1y0mqxp/7VYZ4uBvPrHTiJC07H2w8vHs2OLUiG9pI8WZS3B6B4kjd2/N1xsl6B7Mjenx3bXiCTluP0VpYOKQYA0lqjSOzCtw6uo8KkgaJ7xyx/638i5GfR9x0qVpTkmseFA2DbE1rcaEw== 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=VgI+GMGFXnLsFvq3zzQ90008gy6dukm+lRCYrv6SXPs=; b=SA3B9TTldYLcvtNfvuIeQO95bEzZWz5q2jreDjWPPpagdr5FcJ/ndDsfTJ3pMCcgV6OTGrO2OISdBGwBrG1lc90It/FPJtQygq+N9tgnnebsXLelVuFpd8QaTlhilQU+fJvCWewqPn/PYkzbXxgHP0z+tBL0gOKzbduiLsq3fLGz6VOef1bkeuYtR2qfvQvawGBt0DbyT4wQnuhRhtMfeqgMrXPtSBiiGHsr4mEQLRqgdTGAbOWzClvTWiAKtmfQRFQa06SImxm9RCXYgJLtZFn/5BkGmXweVGT6SVHdP3+wKwLuhlJ9DbogbaRHRhxdFei1K81Gm2PWKT3K8IdJUg== 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=VgI+GMGFXnLsFvq3zzQ90008gy6dukm+lRCYrv6SXPs=; b=EOjZ2j5513nnVLKhtJYnuOMSwehd+8AiCDRJm55S7q/FApAPmxoyVQZrv+s8OaTgT++kGOyu2Ip0ADTe8ZKOB2D3TCvm1x5DV7QkaitBsU+JUDcn80OlfGaOjsu+74M9iLjhjTE541RcpmFr2vJ6HVc5vhVDe5XVlsQwVTsx97g= 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:20:08 +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:20: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 Subject: [PATCH 5/5] RedfishPkg: Fix compile issue on Linux Date: Fri, 14 Apr 2023 15:19:03 +0700 Message-ID: <20230414081903.7892-6-minhnguyen@os.amperecomputing.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230414081903.7892-1-minhnguyen@os.amperecomputing.com> References: <20230414081903.7892-1-minhnguyen@os.amperecomputing.com> 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: 2460f8d9-5e27-46ca-d556-08db3cc10f2c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3P/gCvGxmsurqfoXWXqrT3EKzeHTyOpoqRtRx8EkLEwwennJFnRpQSkMOGJ1CIVb2ZyDVZMgo0wF/67zXqBmJYXI8qumtf4STOKe7Y26Br/S4nJIDUnj+cB8hqEO3s2A/KT0jpUX2yYq3v4XQHNiRRzrSjscgIbw+EeCaxIPFVh+TUrrnQax6oQ4HX6+TFvic4IX4RrAwc9MffYJHtPOcaM45TcnV9EaTlbB9k1cyk/NwTlpBeoob6BcWJkR2wqRl0i29AIMiu/x/ijFns9qOoZ2jMk78ifzAc+7d2fP4nOT/MZyYgYkfOB1ZxXFZBJ94xgLDAZouMuQOqb938dxZs3+n2gdmSo2pOhNFQL910y2HFZytyucMXthC/vOanPrsI/WZf8aEgDIXvDbKeCikLDvVmsmMCESqduSQElaM9B8vCI4OfFkPnE3v5aR2wahyAquXWwzasftu3TgdfLwkeBRIOBeIjnOuBa7ITYaoOifUd5gRbcdWYqUo9EyKjLbmF4GtPL9vRDwRr13g9fG7dp7ttOmL9o3/eO3RuDCXsnfct3APU7e9SEBzuQdMUuX2IndV/sXTgC6IjNdRied2864n+YVvBl95LKRahzAQMIAb67ZKG3gerNig33XvVvO 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)(54906003)(8676002)(8936002)(6666004)(86362001)(26005)(1076003)(6512007)(6506007)(38100700002)(316002)(38350700002)(52116002)(6486002)(186003)(6916009)(4326008)(66556008)(66476007)(66946007)(41300700001)(83380400001)(5660300002)(2906002)(2616005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?e2uogZVFkMP6/cSgK6/3MOi+n7oXAmaE4cWJft0sq9HBDJQfHXHF2lIkdYDI?= =?us-ascii?Q?q8RUVLW2p3D38TFmROa1WSiEp4/45hucnWU7SbVYlwF7Su4fvwMAMcJbH4y4?= =?us-ascii?Q?umCRfDtjEjjYvvrZVd078UbFl1Mu9E/5cWOrkqnen/1Vg/GtVjIhfgEklEdy?= =?us-ascii?Q?Oz0DbDMWn2qe/zNbIbEImDv989K80jwl3CgSlB4qZ9eBTAnvzA/C7Hr5rNnE?= =?us-ascii?Q?FuUhkfLI+OCyJtu54eNDPZbHswLl2WGz0h+MX71m8w998qxsBvpcSe7WOanF?= =?us-ascii?Q?+t/5qdm1M0ssrGZhff+i0SC/vKIivJjowwzRz/wTtcZ5mA6balYAibSBz2cv?= =?us-ascii?Q?U/LiyapeLwm1X2c3E9C1iryIRPvoolwAFXurZMXHKYCyqyUBZjT2V86jWJ6T?= =?us-ascii?Q?D8Ics262mHbh41W5Na1RvUuSuUtQLcu9LwuK5AXbz/QvnfuKoHOGNQah0u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dUjiAALRR+Y4zRKZ0wl0RCljOe0p1ZYP?= =?us-ascii?Q?MqYxeTa2Hidiw2Jf4k9BaI/HAeffl//plJjndYo5No2xq9zdeTbeO0m6Vd7+?= =?us-ascii?Q?Eii/Vqpzvnw48ahFYzobe7gHqFlfPq2urrcfsZs0y9HXB5zLmB3IGva9TfcP?= =?us-ascii?Q?/ZKBLx6a8F3XldrR52Mq8a/G44hWSuiH9RKJtgueYSoy8aCZNxL5SHKn9jry?= =?us-ascii?Q?q70EuHuF0RuVO/gYHxjsodrLRWfn/CDjmHGOhy1uVy77/cRnvTmYvNXWxLW7?= =?us-ascii?Q?6r2+n2MSu071ATOEwKVyRL2nR787faqccWPh7NrR8A74?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2460f8d9-5e27-46ca-d556-08db3cc10f2c X-MS-Exchange-CrossTenant-AuthSource: BYAPR01MB4038.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2023 08:20:08.6613 (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: FfvkNFN+50BJcM/XQHm6FbqdGZHA8PywjSfRgy3GG61bbkohj61PlhccavbZ4ddaXYLBPp9+vWpJY8lZ3WCV5q/P4K6zMSRdApq8KvM0ijGXkf6X+MsCIIhu6BAW4BsK X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV2PR01MB7599 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 --- 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