lkml.org 
[lkml]   [2000]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject2.3.47 Complile error in PCI code [patch]
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
\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.018 / U:0.860 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site