Bugzilla: 3516 (https://bugzilla.tianocore.org/show_bug.cgi?id=3516)
Fix a coding style issue raised by EccCheck. This issue (error code
7008) has been fixed by moving a nested union out of its structure.
Also add Acpi64.h to the "IgnoreFiles" list to stop the CI flagging
naming errors present prior to ACPI 64.
Signed-off-by: Chris Jones <christopher.jones@arm.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
} EFI_ACPI_6_4_DEVICE_HANDLE_PCI;\r
\r
///\r
-/// Generic Initiator Affinity Structure\r
+/// Device Handle\r
///\r
-typedef struct {\r
- UINT8 Type;\r
- UINT8 Length;\r
- UINT8 Reserved1;\r
- UINT8 DeviceHandleType;\r
- UINT32 ProximityDomain;\r
-\r
- union {\r
+typedef union {\r
EFI_ACPI_6_4_DEVICE_HANDLE_ACPI Acpi;\r
EFI_ACPI_6_4_DEVICE_HANDLE_PCI Pci;\r
- } DeviceHandle;\r
+} EFI_ACPI_6_4_DEVICE_HANDLE;\r
\r
- UINT32 Flags;\r
- UINT8 Reserved2[4];\r
+///\r
+/// Generic Initiator Affinity Structure\r
+///\r
+typedef struct {\r
+ UINT8 Type;\r
+ UINT8 Length;\r
+ UINT8 Reserved1;\r
+ UINT8 DeviceHandleType;\r
+ UINT32 ProximityDomain;\r
+ EFI_ACPI_6_4_DEVICE_HANDLE DeviceHandle;\r
+ UINT32 Flags;\r
+ UINT8 Reserved2[4];\r
} EFI_ACPI_6_4_GENERIC_INITIATOR_AFFINITY_STRUCTURE;\r
\r
///\r
#\r
# Copyright (c) Microsoft Corporation\r
# Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2021, Arm Limited. All rights reserved.<BR>\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
##\r
{\r
],\r
## Both file path and directory path are accepted.\r
"IgnoreFiles": [\r
+ "Include/IndustryStandard/Acpi64.h"\r
]\r
},\r
## options defined ci/Plugin/CompilerPlugin\r