ACPICA: Tables: Merge DMAR table structure updates

This patch is a back port result of the following Linux commit:
  Author: David Woodhouse <[email protected]>
  Subject: iommu/vt-d: Add ACPI namespace device reporting structures

ACPICA need to handle old compilers where u8 object_name[] is only allowed
for an initialized variable. This patch reduces back port source code
differences between Linux and ACPICA upstream.

Cc: David Woodhouse <[email protected]>
Signed-off-by: Lv Zheng <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
Lv Zheng 2014-07-08 10:08:25 +08:00 • committed by Rafael J. Wysocki
commit 1538ac64f5

View file

@ -516,7 +516,7 @@ struct acpi_dmar_andd {
struct acpi_dmar_header header;
u8 reserved[3];
u8 device_number;
u8 object_name[];
char object_name[1];
};
/*******************************************************************************