Re: [PATCH 2/3] compilation fixes for gcc 4.0

From: Grzegorz Piotr Jaskiewicz
Date: Wed Sep 22 2004 - 21:09:34 EST


2nd patch attached.

Signed-off-by: Grzegorz Jaskiewicz <gj at pointblue.com.pl>

---

--
GJ
diff -Naur linux-2.6.8/drivers/net/3c507.c linux-2.6.9-rc2-mm1/drivers/net/3c507.c
--- linux-2.6.8/drivers/net/3c507.c 2004-08-14 07:37:38 +0200
+++ linux-2.6.9-rc2-mm1/drivers/net/3c507.c 2004-09-22 21:15:29 +0200
@@ -294,6 +294,7 @@
static void hardware_send_packet(struct net_device *dev, void *buf, short length, short pad);
static void init_82586_mem(struct net_device *dev);
static struct ethtool_ops netdev_ethtool_ops;
+static void init_rx_bufs(struct net_device *);

static int io = 0x300;
static int irq;
@@ -612,7 +613,6 @@
}

if ((status & 0x0070) != 0x0040 && netif_running(dev)) {
- static void init_rx_bufs(struct net_device *);
/* The Rx unit is not ready, it must be hung. Restart the receiver by
initializing the rx buffers, and issuing an Rx start command. */
if (net_debug)