[PATCH] 2.6.12.1 & disabled CONFIG_PCI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If CONFIG_PCI disabled then kernel can't compile properly.

This is an error:
--
  LD      .tmp_vmlinux1
drivers/built-in.o: In function `pnpacpi_allocated_resource':
rsparser.c:(.text+0x31955): undefined reference to
`pcibios_penalize_isa_irq'
make[1]: *** [.tmp_vmlinux1] Error 1
--

This is a small patch for ./drivers/pnp/pnpacpi/rsparser.c
--- linux-2.6.12.1/drivers/pnp/pnpacpi/rsparser.c	2005-06-24 20:12:26.000000000 +0300
+++ /usr/src/linux-2.6.12.1/drivers/pnp/pnpacpi/rsparser.c	2005-06-24 20:03:32.000000000 +0300
@@ -20,7 +20,13 @@
  */
 #include <linux/kernel.h>
 #include <linux/acpi.h>
+
+#ifdef CONFIG_PCI
 #include <linux/pci.h>
+#else
+inline void pcibios_penalize_isa_irq(int irq) {}
+#endif /* CONFIG_PCI */
+
 #include "pnpacpi.h"
 
 #ifdef CONFIG_IA64

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux