From ec088ec68dd7ab60c08b3573e71024527761394b Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 13 Aug 2006 12:42:38 +0200 Subject: [GCC4] fix build error in drivers/net/3c507.c This patch fixes these errors with gcc 4 : 3c507.c: In function 'el16_interrupt': 3c507.c:605: error: invalid storage class for function 'init_rx_bufs' 3c507.c:611: warning: implicit declaration of function 'init_rx_bufs' 3c507.c: At top level: 3c507.c:661: warning: conflicting types for 'init_rx_bufs' 3c507.c:661: error: static declaration of 'init_rx_bufs' follows non-static declaration 3c507.c:611: error: previous implicit declaration of 'init_rx_bufs' was here --- drivers/net/3c507.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/3c507.c b/drivers/net/3c507.c index 4ae5078..4359a64 100644 --- a/drivers/net/3c507.c +++ b/drivers/net/3c507.c @@ -306,6 +306,7 @@ static void el16_tx_timeout (struct net_ 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 *); /* Check for a network adaptor of this type, and return '0' iff one exists. @@ -602,7 +603,6 @@ static void el16_interrupt(int irq, void } 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) -- 1.4.2