2.6.0-test1: include/linux/pci.h inconsistency?

Lars Duesing (ld@stud.fh-muenchen.de)
14 Jul 2003 17:06:06 +0200


Hi people!
After having problems compiling nforce2-drivers for 2.6.0-test1, I had a
look after include/linux/pci.h.
There is some inconsistency in there:

pci_driver->driver_data is not there any more BUT in pci_dynids it is
referenced:

unsigned int use_driver_data:1; /* pci_driver->driver_data is
used */

attached a dirty patch:

diff -u linux-2.6.0-test1/include/linux/pci.h
linux-2.6.0-test1.new/include/linux/pci.h
--- linux-2.6.0-test1/include/linux/pci.h 2003-07-14
05:34:02.000000000 +0200
+++ linux-2.6.0-test1.new/include/linux/pci.h 2003-07-14
16:48:30.000000000 +0200
@@ -501,7 +501,7 @@
struct pci_dynids {
spinlock_t lock; /* protects list, index */
struct list_head list; /* for IDs added at runtime */
- unsigned int use_driver_data:1; /* pci_driver->driver_data is
used */
+ unsigned int use_driver_data:0; /* pci_driver->driver_data is
NOT there any more */
};

btw: this driver_data is used by the networking part of the
nforce2-driver. If anybody knows a hint, tell me.
Else I will try to wake up someone at nvidia.

Greetings,

Lars Duesing
Munich University Of Applied Sciences, Students' Council

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