Re: Compile fails an Alpha: include/asm/pci.h included from arch/alpha/kernel/setup.c

From: Michal Jaegermann (michal@harddata.com)
Date: Mon May 21 2001 - 15:19:07 EST


On Mon, May 21, 2001 at 05:18:55PM +0200, Jan-Benedict Glaw wrote:
>
> Kernel 2.4.5-pre[34] don't compile on Alpha:
>
....

> 152 struct pci_controller *hose = pdev->sysdata;
                                                 ^^^

This is the problem (a type for 'pdev' is not defined).
And this is a possible fix:

--- linux-2.4.4ac/include/asm-alpha/pci.h~ Sat May 19 16:43:11 2001
+++ linux-2.4.4ac/include/asm-alpha/pci.h Sat May 19 17:23:56 2001
@@ -6,6 +6,7 @@
 #include <linux/spinlock.h>
 #include <asm/scatterlist.h>
 #include <asm/machvec.h>
+#include <linux/pci.h>
 
 /*
  * The following structure is used to manage multiple PCI busses.

The patch is for 2.4.4-ac11, so offsets are possibly slightly different,
but probably not. :-)

  Michal
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed May 23 2001 - 21:00:43 EST