[PATCH 1/8] x86/pci: gate arch fixups with CONFIG_PCI_QUIRKS

From: Rosen Penev

Date: Tue Jul 07 2026 - 18:18:55 EST


arch/x86/pci/fixup.c was compiled unconditionally when PCI is
enabled on x86, meaning x86-specific quirks ran even with
CONFIG_PCI_QUIRKS=n. Make it depend on CONFIG_PCI_QUIRKS so
that disabling the option disables all quirks.

Assisted-by: opencode:big-pickle
Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
---
arch/x86/pci/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/pci/Makefile b/arch/x86/pci/Makefile
index c1efd5b0d198..2ceb9f94db17 100644
--- a/arch/x86/pci/Makefile
+++ b/arch/x86/pci/Makefile
@@ -7,7 +7,7 @@ obj-$(CONFIG_PCI_DIRECT) += direct.o
obj-$(CONFIG_PCI_OLPC) += olpc.o
obj-$(CONFIG_PCI_XEN) += xen.o

-obj-y += fixup.o
+obj-$(CONFIG_PCI_QUIRKS) += fixup.o
obj-$(CONFIG_ACPI) += acpi.o
obj-y += legacy.o irq.o

--
2.55.0