Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
RedfishPkg: Fix compile issue on Linux
Browse files Browse the repository at this point in the history
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: Vu Nguyen <[email protected]>
  • Loading branch information
vu-ampere authored and nhivp committed Jun 30, 2021
1 parent 0bef174 commit 4b0c883
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RedfishPkg/Include/Pcd/RestExServiceDevicePath.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
(C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
Copyright (c) 2021, Ampere Computing LLC. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
Expand All @@ -14,6 +15,8 @@

#include <Protocol/DevicePath.h>

#define MAX_DEVICE_PATH_NODE 40

typedef enum {
DEVICE_PATH_MATCH_MAC_NODE = 1,
DEVICE_PATH_MATCH_PCI_NODE = 2,
Expand All @@ -32,7 +35,7 @@ typedef struct {
// 0x03,0x0b,0x25,0x00,0x00,0x50,0x56,0xc0,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,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;

#endif

0 comments on commit 4b0c883

Please sign in to comment.