Skip to content

Commit 40a6cc1

Browse files
chenhuacaibjorn-helgaas
authored andcommitted
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>
1 parent f2906aa commit 40a6cc1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/acpi/pci_mcfg.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ struct mcfg_fixup {
4141
static struct mcfg_fixup mcfg_quirks[] = {
4242
/* { OEM_ID, OEM_TABLE_ID, REV, SEGMENT, BUS_RANGE, ops, cfgres }, */
4343

44+
#ifdef CONFIG_ARM64
45+
4446
#define AL_ECAM(table_id, rev, seg, ops) \
4547
{ "AMAZON", table_id, rev, seg, MCFG_BUS_ANY, ops }
4648

@@ -169,6 +171,7 @@ static struct mcfg_fixup mcfg_quirks[] = {
169171
ALTRA_ECAM_QUIRK(1, 13),
170172
ALTRA_ECAM_QUIRK(1, 14),
171173
ALTRA_ECAM_QUIRK(1, 15),
174+
#endif /* ARM64 */
172175
};
173176

174177
static char mcfg_oem_id[ACPI_OEM_ID_SIZE];

0 commit comments

Comments
 (0)