From ff7d590b064fb9815438c229c7f8cb8260e58944 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sat, 12 Aug 2006 19:02:28 +0200 Subject: [GCC4] fix build error in drivers/net/acenic.c This patch fixes this error with gcc 4 : acenic.c: In function 'acenic_probe': acenic.c:668: error: invalid storage class for function 'ace_watchdog' acenic.c:669: error: 'ace_watchdog' undeclared (first use in this function) acenic.c:669: error: (Each undeclared identifier is reported only once acenic.c:669: error: for each function it appears in.) --- drivers/net/acenic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/acenic.c b/drivers/net/acenic.c index e09a485..5ad93f4 100644 --- a/drivers/net/acenic.c +++ b/drivers/net/acenic.c @@ -594,6 +594,7 @@ static struct net_device *root_dev; static int probed __initdata = 0; +static void ace_watchdog(struct net_device *dev); int __devinit acenic_probe (ACE_PROBE_ARG) { @@ -665,7 +666,6 @@ #if ACENIC_DO_VLAN dev->vlan_rx_kill_vid = ace_vlan_rx_kill_vid; #endif if (1) { - static void ace_watchdog(struct net_device *dev); dev->tx_timeout = &ace_watchdog; dev->watchdog_timeo = 5*HZ; } -- 1.4.2