Commit d84ab56d authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] PCI/x86-64: build with PCI=n

Fix (most of) x64-64 kernel build for CONFIG_PCI=n.  Fixes these 2 errors:

1. arch/x86_64/kernel/built-in.o(.text+0x8186): In function `quirk_intel_irqbalance':
: undefined reference to `raw_pci_ops'

Kconfig change:
2. arch/x86_64/kernel/pci-gart.c:194: error: `pci_bus_type' undeclared (first use in this function)

Still does not fix this one:
drivers/built-in.o(.text+0x3dcd8): In function `pnpacpi_allocated_resource':
: undefined reference to `pcibios_penalize_isa_irq'
Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 90732a8a
/* /*
* This file contains work-arounds for x86 and x86_64 platform bugs. * This file contains work-arounds for x86 and x86_64 platform bugs.
*/ */
#include <linux/config.h>
#include <linux/pci.h> #include <linux/pci.h>
#include <linux/irq.h> #include <linux/irq.h>
#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_SMP) #if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_SMP) && defined(CONFIG_PCI)
void __devinit quirk_intel_irqbalance(struct pci_dev *dev) void __devinit quirk_intel_irqbalance(struct pci_dev *dev)
{ {
......
...@@ -306,6 +306,7 @@ config NR_CPUS ...@@ -306,6 +306,7 @@ config NR_CPUS
config GART_IOMMU config GART_IOMMU
bool "IOMMU support" bool "IOMMU support"
depends on PCI
help help
Support the K8 IOMMU. Needed to run systems with more than 4GB of memory Support the K8 IOMMU. Needed to run systems with more than 4GB of memory
properly with 32-bit PCI devices that do not support DAC (Double Address properly with 32-bit PCI devices that do not support DAC (Double Address
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment