forked from Imagelibrary/seL4
pc99: Prevent zero sized array when IOMMU disabled
An array is declared of size CONFIG_MAX_RMRR_ENTRIES, and if this is zero (such as when the IOMMU is disabled), then it becomes a zero sized array, which is a GNU C extension.
This commit is contained in:
@@ -22,7 +22,7 @@ config_string(KernelMaxRMRREntries MAX_RMRR_ENTRIES
|
||||
"Setsthe maximum number of Reserved Memory Region Reporting structures we support \
|
||||
recording from the ACPI tables"
|
||||
DEFAULT 32
|
||||
DEPENDS "KernelIOMMU" DEFAULT_DISABLED 0
|
||||
DEPENDS "KernelIOMMU" DEFAULT_DISABLED 1
|
||||
UNQUOTE
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user