ChangeSet 1.2167, 2004/12/09 12:22:35-08:00, [EMAIL PROTECTED]
[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: Randy Dunlap <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
arch/i386/kernel/quirks.c | 3 ++-
arch/x86_64/Kconfig | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff -Nru a/arch/i386/kernel/quirks.c b/arch/i386/kernel/quirks.c
--- a/arch/i386/kernel/quirks.c 2004-12-09 14:54:45 -08:00
+++ b/arch/i386/kernel/quirks.c 2004-12-09 14:54:45 -08:00
@@ -1,10 +1,11 @@
/*
* This file contains work-arounds for x86 and x86_64 platform bugs.
*/
+#include <linux/config.h>
#include <linux/pci.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)
{
diff -Nru a/arch/x86_64/Kconfig b/arch/x86_64/Kconfig
--- a/arch/x86_64/Kconfig 2004-12-09 14:54:45 -08:00
+++ b/arch/x86_64/Kconfig 2004-12-09 14:54:45 -08:00
@@ -306,6 +306,7 @@
config GART_IOMMU
bool "IOMMU support"
+ depends on PCI
help
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
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel