2.3.47 Complile error in PCI code [patch]

From: Henrik Nordstrom (henrik.nordstrom@edt.ericsson.se)
Date: Mon Feb 21 2000 - 07:06:05 EST


While trying to compile Linux-2.3.47 on an Alpha box.. (the error seems
to be genereic thought)

/usr/src/redhat/BUILD/linux/include/linux/pci.h: In function
`pci_module_init':
In file included from pcisyms.c:11:
/usr/src/redhat/BUILD/linux/include/linux/pci.h:608: `ENODEV' undeclared
(first use in this function)

Cause: linux/errno.h not included by linux/pci.h.

Patch attached.


--- linux/include/linux/pci.h.orig Mon Feb 21 05:48:23 2000
+++ linux/include/linux/pci.h Mon Feb 21 12:19:54 2000
@@ -285,6 +285,7 @@
 #include <linux/config.h>
 #include <linux/ioport.h>
 #include <linux/list.h>
+#include <linux/errno.h>
 
 /* This defines the direction arg to the DMA mapping routines. */
 #define PCI_DMA_BIDIRECTIONAL 0

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



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:27 EST