]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Build failure with !CONFIG_PCI and with CONFIG_ISAPNP=y && CONFIG_PNPBIOS=y
authorMika Kukkonen <mikukkon@gmail.com>
Mon, 21 Feb 2005 23:30:32 +0000 (15:30 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 21 Feb 2005 23:30:32 +0000 (15:30 -0800)
Trying to build latest BK-kernel with !CONFIG_PCI and with CONFIG_ISAPNP=y
and CONFIG_PNPBIOS=y I got the following build error:

  LD    vmlinux
drivers/built-in.o(.text+0x5486): In function
'pnpbios_parse_allocated_irqresource':
: undefined reference to 'pcibios_penalize_isa_irq'

Clearly pcibios_penalize_isa_irq() is meant to be called only with
CONFIG_PCI=y.

Signed-off-by: Mika Kukkonen <mikukkon@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/pnp/pnpbios/rsparser.c

index 3c7f9772fce9633d6255e955a85a47eee560f1bc..618ac15a9e90b2f1b98e76eb15225f989cf138bc 100644 (file)
@@ -7,7 +7,12 @@
 #include <linux/ctype.h>
 #include <linux/pnp.h>
 #include <linux/pnpbios.h>
+
+#ifdef CONFIG_PCI
 #include <linux/pci.h>
+#else
+inline void pcibios_penalize_isa_irq(int irq) {}
+#endif /* CONFIG_PCI */
 
 #include "pnpbios.h"