From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (NAM02-BN1-obe.outbound.protection.outlook.com [40.107.212.116]) by mx.groups.io with SMTP id smtpd.web11.21037.1683269203966952981 for ; Thu, 04 May 2023 23:46:44 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@os.amperecomputing.com header.s=selector2 header.b=EQtpu1N+; spf=pass (domain: os.amperecomputing.com, ip: 40.107.212.116, mailfrom: minhnguyen1@os.amperecomputing.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ra1oF615cJO0GOJvCjZR5SIgzRRLOpWVrHUs8OQbSDTZjfuMwCJoBDx/1nscnj6P9S96pWSFxZH4v//Z8BgRzbwv3Njqp6vSkcwP7cBeOqYdPcdewucBh2KkkaEgDC/EvfZeDCdhDJGUCpOycVG+4+w2AVoYGiflWlK8uhmUaYfqI6CJIDh1ifxPqeRChajL4fvfv1aA0skV+y+9Zw7GP2zcWEK/0U5RSYnX+dY+Kb3fPkzsMbpB+SDiynfheITnvO9A/MV+CW5/WXXGlRR2jLJ7XaFr1fdal04Lpg5okEXc3asnSGhpwgF5REL7DL0Tr0PL1/McbwvIKNYjk+7g3w== 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=LNsARJPdfv+Ega6MxrESVYAyosItbLhCSZoX5rytwQceOm+w+BMQBQmE7Z5hW8c5k8XRMak2pEvjSzNERQ1Mn6jAOybzBGytG5chpHW64k5cnA0YE9Oy7Jr7Ywl8uJLAAky4LXGb5GrjoE3LqV2MfUvJjKx0U/cT15L6b0VJCH5Q3uglNKZvrXKeHucNsixV8/SMtQUi9Etjhu0/WQWbuKi/95hjuXhsBihrWARdpaKmQzTosBjsKzLZSJdga4+JS77xuImZrGq9+9xjPlaVLeBrvKC+CTiPLoTnGcr16XDvwbDSDi2LmWFP/GysBHEDRnBnyFJlwIyRd5fvRZ0zAw== 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=EQtpu1N+ODisEy+lmRierMbujkSnJgpwad3l9cena35K2jIlvoKdTeSlLXTW6uFDDuIQReV9/lHl4/X5yFVANipAYda0haWicSW/1jvKh5Po4xkhM7c2OT6zXZurFvOdvoKYGWn4gb++Bc7fVGsENCEgK3KuYzbnC40FehkEXvw= 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 SN6PR01MB5087.prod.exchangelabs.com (2603:10b6:805:b8::13) 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 06:46:41 +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 06:46:41 +0000 From: minhnampere 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 13:46:00 +0700 Message-ID: <20230505064600.1478461-6-minhnguyen1@os.amperecomputing.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230505064600.1478461-1-minhnguyen1@os.amperecomputing.com> References: <20230505064600.1478461-1-minhnguyen1@os.amperecomputing.com> X-ClientProxiedBy: SG3P274CA0005.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::17) 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_|SN6PR01MB5087:EE_ X-MS-Office365-Filtering-Correlation-Id: 64a7b5cb-843d-4768-94e4-08db4d347bc5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wqbD2tSW77qLe9xE6GhltVK7cU5uAIHOF/FMigyxsO1WDwnGlTavUYc59iST85hF3LXeXRxGzSamzDYVxKj3viP8GTStxMqOKNsSLCq4m5iPLUazp4bYOmNDkfYYOT0lqF4TwLsgP3LmnrrT88ezwEiRkYnKIwZoVFHa7n3kkQg26Ghi3b5gmBaI9Y1YLURdESCPkzLC1djycy632gWyiz7r0oOwlMw3z0C0XPS57nJuPVy2k7EEMelIj7CvdaU9zqpoLO2fOrVjTgc2D0rO7iBnu1s/mYsQXhsXTXSbnMNwHR9TpdITrt51HewwC8KVEg6sxKXES6PSEDA3p29XkZ5juyJanDu0ZJITHeiIGSJsUqsC5btixn86h4qBOZOw1l2UhhXigQZ3nKvr1tJKL+xNXVEO9WWZ8ESPtpwTPI9quoE2qZv4GzXxdpEdL3uYZpUR9D+M1D7YSdnCRRn58XoLEBKr63PKeFiXFrzdxU8H9syTnXVacS8TJxsxwx6/c5W2boB5PYOfKX+z7pZC5+PUTkba++GNiiLvPzwerm6Q0zKWfbD80h/bxOTar5U5G5OVaa03nktBseJEuF/EZ7J3I1nkSp0l8asnmEgvhAXpk/3lvNT6zdH4vrv+SMhaWxRqL+VscadNd6WrLpElng== 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)(346002)(376002)(366004)(136003)(396003)(39850400004)(451199021)(83380400001)(52116002)(6486002)(1076003)(186003)(478600001)(54906003)(6666004)(2616005)(6506007)(6512007)(26005)(2906002)(38350700002)(5660300002)(38100700002)(66556008)(4326008)(41300700001)(8936002)(66946007)(6916009)(66476007)(8676002)(316002)(86362001)(43062005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?M0TrO38GRMJ9mJnwtpUsZsCBqzoDkmE7EjpHj8yBu4UAq44nXP0g+7i/FT3W?= =?us-ascii?Q?C7b5I0ZvGXb9lkjvnbDb/7m0e/ERC30ws/h3ANeBy7ddiEILUFJCWX97pVes?= =?us-ascii?Q?Zdmi/4b4skZfh4d7jjbt5lV0XozTd1yGu67DsOUtYMPGdQwcehQ0F0C5SHqf?= =?us-ascii?Q?QEB4FnVYQoxLBRfC69ymEKFYIqyOPYixywQKxnrwy6CfX4amuSGGZBGgInNY?= =?us-ascii?Q?DEy/YofTAmg/0+aXhpMRNBfGOBNwZrjXB+ouzATHtATnp4kVPlSso9z1ABQf?= =?us-ascii?Q?A+rTHDNi6x2yw6pWYgIp9xLajeco/SQbn/ylp/tO9rdJ9BDgpDGkm8+cRTGQ?= =?us-ascii?Q?dQy1RPb7GUQZHjhCJVDJMXmwtBV1EvuLclUQyFLgqJbYRDWSoc+cR3VSvfOY?= =?us-ascii?Q?XG4hPboqa42Egnts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=?us-ascii?Q?fNK6Pt3GoID+IM3goLmljoOSYVxIyQPunPOgSjP9nUGhCv5WjuGdbpoLH0fI?= =?us-ascii?Q?OQ6rqUka9AhhXtxnJ6oIcssRP0GqKVmfmVQKMvYazSehcUj7y7c7JV5ldXFI?= =?us-ascii?Q?QsD2YdS8Em1iAJBVYGsLziGVG1bfB71g1INipTelxPigjIFCduSTaixdKaXD?= =?us-ascii?Q?haGA/GkSUf2k7SP2wNMI5pm8Trdkr0kWH79Lzs4CY9Q6u/tsFWwdaNCDF/Op?= =?us-ascii?Q?YnDZAgV+3ulDZIgqo8D/9y/RdqgV4ELOvVyYMARlkoo4lF9LzeEwHtJIVfj3?= =?us-ascii?Q?qriKPUcvw+czbyIt6TM41I3S5kaeXh4AD4Dq2Uw7lcWf?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 64a7b5cb-843d-4768-94e4-08db4d347bc5 X-MS-Exchange-CrossTenant-AuthSource: PH0PR01MB8048.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 May 2023 06:46:41.5473 (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: hKbOjpaqUGAzquDLH8hVbRm1JYk+27n9JfsggBh/u9cf0lGCcncBae/ww5t9mM8bJDa6kDYKxus0VESQdYDWhZC/SJBb2c1KlgednA5nVqgnBqg4JgzZ6QNzUSj3jeJq X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR01MB5087 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