compilation fixes for gcc 4.0
Subsystems (2)
PATCH 2/3 compilation fixes for gcc 4.0
Signed-off-by Grzegorz Jaskiewicz <gj at pointblue.com.pl>
net/3c507.c 2004-09-22 21:15:29 +0200 renamed from net/3c507.old.c 2004-09-22 21:14:51 +0200 +0 -0
@@ -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)
--
GJ
2nd patch attached.
Signed-off-by Grzegorz Jaskiewicz <gj at pointblue.com.pl>
---
--
GJ
drivers/net/3c507.c +1 -1
@@ -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)