]> err.no Git - linux-2.6/commitdiff
[PATCH] ppc32: fix compilation error in arch/ppc/kernel/time.c
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sat, 16 Apr 2005 22:24:28 +0000 (15:24 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 16 Apr 2005 22:24:28 +0000 (15:24 -0700)
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).

Signed-Off-By: Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc/kernel/time.c

index b3cee6b014546192fd2f7f476d1fb3619493913b..735866559199cb39a2a19c59dd38295e4715c082 100644 (file)
@@ -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);