All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] 2.6.12.1 & disabled CONFIG_PCI
  2005-06-24 17:24 [PATCH] 2.6.12.1 & disabled CONFIG_PCI Pasha Zubkov
@ 2005-06-24 17:13 ` Chris Wright
  0 siblings, 0 replies; 2+ messages in thread
From: Chris Wright @ 2005-06-24 17:13 UTC (permalink / raw)
  To: Pasha Zubkov; +Cc: linux-kernel

* Pasha Zubkov (pasha.zubkov@gmail.com) wrote:
> --- 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

This should be done in header file, then the pnpbios bit can be cleaned
up as well.

thanks,
-chris

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] 2.6.12.1 & disabled CONFIG_PCI
@ 2005-06-24 17:24 Pasha Zubkov
  2005-06-24 17:13 ` Chris Wright
  0 siblings, 1 reply; 2+ messages in thread
From: Pasha Zubkov @ 2005-06-24 17:24 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 345 bytes --]

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

[-- Attachment #2: rsparser.c_undefined_reference.diff --]
[-- Type: text/plain, Size: 430 bytes --]

--- 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-06-24 17:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-24 17:24 [PATCH] 2.6.12.1 & disabled CONFIG_PCI Pasha Zubkov
2005-06-24 17:13 ` Chris Wright

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.