From cab176fde1b4763247f27d6976f9e7d5c09c2a43 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 13 Aug 2006 13:08:18 +0200 Subject: [GCC4] fix build error in drivers/net/wan/comx-hw-comx.c This patch fixes these errors with gcc 4 : comx-hw-comx.c:1402: error: static declaration of 'comx_hw' follows non-static declaration comx-hw-comx.c:96: error: previous declaration of 'comx_hw' was here comx-hw-comx.c:1411: error: static declaration of 'cmx_hw' follows non-static declaration comx-hw-comx.c:97: error: previous declaration of 'cmx_hw' was here comx-hw-comx.c:1420: error: static declaration of 'hicomx_hw' follows non-static declaration comx-hw-comx.c:95: error: previous declaration of 'hicomx_hw' was here --- drivers/net/wan/comx-hw-comx.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wan/comx-hw-comx.c b/drivers/net/wan/comx-hw-comx.c index dedb224..e78738e 100644 --- a/drivers/net/wan/comx-hw-comx.c +++ b/drivers/net/wan/comx-hw-comx.c @@ -92,9 +92,9 @@ struct comx_privdata { }; static struct net_device *memory_used[(COMX_MEM_MAX - COMX_MEM_MIN) / 0x10000]; -extern struct comx_hardware hicomx_hw; -extern struct comx_hardware comx_hw; -extern struct comx_hardware cmx_hw; +static struct comx_hardware hicomx_hw; +static struct comx_hardware comx_hw; +static struct comx_hardware cmx_hw; static void COMX_interrupt(int irq, void *dev_id, struct pt_regs *regs); -- 1.4.2