Unable to compile 2.5.4: "control reaches end of non-void functionm"
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 6 lines · Steve Kieu
Hi,
It seems nobody having this problem? No one replies at least why, so I just want to add one more case of compiling error. Exactly the same message as yours.
Folks on LKML are pretty good about replying to people with problems, so whenever my posts are ignored here I start checking the archives (figuring that my problem has probably already been reported and dealt with). :)
include/asm-i386/processor.h Sun Feb 10 22:21:53 2002 renamed from include/asm-i386/processor.h Sun Feb 10 22:00:29 2002 +1 -8
@@ -435,14 +435,7 @@ extern int kernel_thread(int (*fn)(void /* Copy and release all segment info associated with a VM */ extern void copy_segments(struct task_struct *p, struct mm_struct * mm); extern void release_segments(struct mm_struct * mm); - -/* - * Return saved PC of a blocked thread. - */ -static inline unsigned long thread_saved_pc(struct task_struct *tsk) -{ - return ((unsigned long *)tsk->thread->esp)[3]; -} +extern unsigned long thread_saved_pc(struct task_struct *tsk); unsigned long get_wchan(struct task_struct *p); #define KSTK_EIP(tsk) (((unsigned long *)(4096+(unsigned
long)(tsk)->thread_in
fo))[1019])
arch/i386/kernel/process.c Sun Feb 10 22:26:35 2002 renamed from arch/i386/kernel/process.c Sun Feb 10 22:00:28 2002 +8 -0
@@ -55,6 +55,14 @@ asmlinkage void ret_from_fork(void) __as int hlt_counter; /* + * Return saved PC of a blocked thread. + */ +unsigned long thread_saved_pc(struct task_struct *tsk) +{ + return ((unsigned long *)tsk->thread.esp)[3]; +} + +/* * Powermanagement idle function, if any.. */ void (*pm_idle)(void);
Signature · 3 lines
(o- j o h n e w e b e r //\ http://www.linuxhq.com/people/weber/ v_/_ [email protected]