Re: Compile error in 2.3.13pre6

Tim Waugh (tim@cyberelk.demon.co.uk)
Thu, 5 Aug 1999 21:53:49 +0100 (GMT)


On Thu, 5 Aug 1999, Michael H. Warfield wrote:

> Just downloaded pre-patch-2.3.13-6.gz and applied it to a fresh
> 2.3.12 source tree. Compiling gets the following errors:

Untested patch:

Index: linux/drivers/net/3c59x.c
diff -u linux/drivers/net/3c59x.c:1.1.1.1 linux/drivers/net/3c59x.c:1.3
--- linux/drivers/net/3c59x.c:1.1.1.1 Tue Aug 3 20:09:33 1999
+++ linux/drivers/net/3c59x.c Thu Aug 5 21:51:22 1999
@@ -655,7 +655,11 @@
continue;

{
-#if LINUX_VERSION_CODE >= 0x20155
+#if LINUX_VERSION_CODE >= 0x2030d
+ struct pci_dev *pdev = pci_find_slot(pci_bus, pci_device_fn);
+ ioaddr = pdev->resource[0].start;
+ irq = pdev->irq;
+#elif LINUX_VERSION_CODE >= 0x20155
struct pci_dev *pdev = pci_find_slot(pci_bus, pci_device_fn);
ioaddr = pdev->base_address[0] & ~3;
irq = pdev->irq;

Tim.
*/

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