Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI/ACPI: Guard ARM64-specific mcfg_quirks

Guard ARM64-specific quirks with CONFIG_ARM64 to avoid build errors,
since mcfg_quirks will be shared by more than one architectures.

Link: https://lore.kernel.org/r/20220714124216.1489304-2-chenhuacai@loongson.cn
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>

authored by

Huacai Chen and committed by
Bjorn Helgaas
40a6cc14 f2906aa8

+3
+3
drivers/acpi/pci_mcfg.c
··· 41 41 static struct mcfg_fixup mcfg_quirks[] = { 42 42 /* { OEM_ID, OEM_TABLE_ID, REV, SEGMENT, BUS_RANGE, ops, cfgres }, */ 43 43 44 + #ifdef CONFIG_ARM64 45 + 44 46 #define AL_ECAM(table_id, rev, seg, ops) \ 45 47 { "AMAZON", table_id, rev, seg, MCFG_BUS_ANY, ops } 46 48 ··· 171 169 ALTRA_ECAM_QUIRK(1, 13), 172 170 ALTRA_ECAM_QUIRK(1, 14), 173 171 ALTRA_ECAM_QUIRK(1, 15), 172 + #endif /* ARM64 */ 174 173 }; 175 174 176 175 static char mcfg_oem_id[ACPI_OEM_ID_SIZE];