From e39096aa764a77c336a076663501d10b9784faf7 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 15 Aug 2006 21:13:19 +0200 Subject: [GCC4] SPARC64: fix build error in arch/sparc64/kernel/time.c This patch fixes this error with gcc 4 (encountered on sparc64) : time.c:50: error: static declaration of 'mstk48t08_regs' follows non-static declaration /usr/src/linux-2.4.33-gcc4-u60/include/asm/mostek.h:137: error: previous declaration of 'mstk48t08_regs' was here time.c:51: error: static declaration of 'mstk48t59_regs' follows non-static declaration /usr/src/linux-2.4.33-gcc4-u60/include/asm/mostek.h:144: error: previous declaration of 'mstk48t59_regs' was here --- include/asm-sparc64/mostek.h | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/include/asm-sparc64/mostek.h b/include/asm-sparc64/mostek.h index b000c15..ccf2f5f 100644 --- a/include/asm-sparc64/mostek.h +++ b/include/asm-sparc64/mostek.h @@ -134,13 +134,11 @@ #define MSTK_SET_REG_YEAR(regs,value) MS */ #define MOSTEK_48T08_OFFSET 0x0000UL /* Lower NVRAM portions */ #define MOSTEK_48T08_48T02 0x1800UL /* Offset to 48T02 chip */ -extern unsigned long mstk48t08_regs; /* SUN5 systems usually have 48t59 model clock chipsets. But we keep the older * clock chip definitions around just in case. */ #define MOSTEK_48T59_OFFSET 0x0000UL /* Lower NVRAM portions */ #define MOSTEK_48T59_48T02 0x1800UL /* Offset to 48T02 chip */ -extern unsigned long mstk48t59_regs; #endif /* !(_SPARC64_MOSTEK_H) */ -- 1.4.2