lkml.org 
[lkml]   [2001]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Compile fails an Alpha: include/asm/pci.h included from arch/alpha/kernel/setup.c
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/

\
 
 \ /
  Last update: 2005-03-22 12:53    [W:0.044 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site