Re: link failure on alpha (test3)

From: Ivan Kokshaysky (ink@jurassic.park.msu.ru)
Date: Tue Jul 11 2000 - 09:54:29 EST


On Tue, Jul 11, 2000 at 06:29:19PM +0900, Tom Holroyd wrote:
> arch/alpha/kernel/kernel.o: In function `do_gettimeofday':
> time.c(.text+0x9e20): undefined reference to `lost_ticks'
> arch/alpha/kernel/kernel.o: In function `do_settimeofday':
> time.c(.text+0x9ee4): undefined reference to `lost_ticks'

`lost_ticks' for some reason transformed to `wall_jiffies'.
As usual, only the i386 was updated.

--- 2.4.0t3/arch/alpha/kernel/time.c Tue Apr 25 00:39:34 2000
+++ linux/arch/alpha/kernel/time.c Tue Jul 11 17:49:24 2000
@@ -45,7 +45,7 @@
 #include "irq_impl.h"
 
 extern rwlock_t xtime_lock;
-extern volatile unsigned long lost_ticks; /* kernel/sched.c */
+extern unsigned long wall_jiffies; /* kernel/timer.c */
 
 static int set_rtc_mmss(unsigned long);
 
@@ -312,7 +312,7 @@
         sec = xtime.tv_sec;
         usec = xtime.tv_usec;
         partial_tick = state.partial_tick;
- lost = lost_ticks;
+ lost = jiffies - wall_jiffies;
 
         read_unlock_irqrestore(&xtime_lock, flags);
 
@@ -363,12 +363,12 @@
            time. Without this, a full-tick error is possible. */
 
 #ifdef CONFIG_SMP
- delta_usec = lost_ticks * (1000000 / HZ);
+ delta_usec = (jiffies - wall_jiffies) * (1000000 / HZ);
 #else
         delta_usec = rpcc() - state.last_time;
         delta_usec = (delta_usec * state.scaled_ticks_per_cycle
                       + state.partial_tick
- + (lost_ticks << FIX_SHIFT)) * 15625;
+ + ((jiffies - wall_jiffies) << FIX_SHIFT)) * 15625;
         delta_usec = ((delta_usec / ((1UL << (FIX_SHIFT-6-1)) * HZ)) + 1) / 2;
 #endif
 

> drivers/ide/idedriver.o: In function `ide_xlate_1024':
> ide-geometry.c(.text+0x13c): undefined reference to `get_info_ptr'
> ide-geometry.c(.text+0x140): undefined reference to `get_info_ptr'
> ide-geometry.c(.text+0x284): undefined reference to `current_capacity'
> ide-geometry.c(.text+0x288): undefined reference to `current_capacity'
> make: *** [vmlinux] Error 1
>
Looks like IDE config mess. Should work with CONFIG_BLK_DEV_IDEDISK=y though.

Ivan.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 15 2000 - 21:00:12 EST