Skip to contentSkip to conversation

ppc32: fix compilation error in arch/ppc/kernel/time.c

PATCH New [email protected] 1 participant 1 message Apr 13, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 41/198 ppc32: fix compilation error in arch/ppc/kernel/time.c

From: Benoit Boissinot <[email protected]>

make defconfig give the following error on ppc (gcc-4):

arch/ppc/kernel/time.c:92: error: static declaration of ‘time_offset’ follows non-static declaration
include/linux/timex.h:236: error: previous declaration of ‘time_offset’ was here

The following patch solves it (time_offset is declared in timer.c).

---

 25-akpm/arch/ppc/kernel/time.c |    2 --
 1 files changed, 2 deletions(-)
arch/ppc/kernel/time.c renamed from arch/ppc/kernel/time.c~ppc32-fix-compilation-error-in-arch-ppc-kernel-timec +0 -2
diff -puN arch/ppc/kernel/time.c~ppc32-fix-compilation-error-in-arch-ppc-kernel-timec arch/ppc/kernel/time.c
@@ -89,8 +89,6 @@ unsigned long tb_to_ns_scale;
 
 extern unsigned long wall_jiffies;
 
-static long time_offset;
-
 DEFINE_SPINLOCK(rtc_lock);
 
 EXPORT_SYMBOL(rtc_lock);

_