Skip to contentSkip to conversation

compilation fixes for gcc 4.0

PATCH In review Grzegorz Piotr Jaskiewicz 1 participant 2 messages Sep 22, 2004 – Sep 23, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

2nd patch attached.

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

---

--
GJ

drivers/net/3c507.c +1 -1
diff -Naur linux-2.6.8/drivers/net/3c507.c linux-2.6.9-rc2-mm1/drivers/net/3c507.c
@@ -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)