From: John Weber <john.weber@linuxhq.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Unable to compile 2.5.4: "control reaches end of non-void functionm"
Date: Wed, 13 Feb 2002 00:09:07 -0500 [thread overview]
Message-ID: <3C69F4F3.8080208@linuxhq.com> (raw)
In-Reply-To: <fa.l69quuv.1ljio8r@ifi.uio.no>
Steve Kieu wrote:
> 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). :)
diff -Nru linux-2.5.4 25
--- linux-2.5.4/include/asm-i386/processor.h Sun Feb 10 22:00:29 2002
+++ 25/include/asm-i386/processor.h Sun Feb 10 22:21:53 2002
@@ -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])
--- linux-2.5.4/arch/i386/kernel/process.c Sun Feb 10 22:00:28 2002
+++ 25/arch/i386/kernel/process.c Sun Feb 10 22:26:35 2002
@@ -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);
--
(o- j o h n e w e b e r
//\ http://www.linuxhq.com/people/weber/
v_/_ john.weber@linuxhq.com
next parent reply other threads:[~2002-02-13 5:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.l69quuv.1ljio8r@ifi.uio.no>
2002-02-13 5:09 ` John Weber [this message]
[not found] <fa.j3e61kv.181e63g@ifi.uio.no>
2002-02-13 17:34 ` Unable to compile 2.5.4: "control reaches end of non-void functionm" Per Persson
2002-02-13 4:48 Steve Kieu
2002-02-13 13:53 ` J.S.S.
2002-02-13 16:27 ` Daniel J Blueman
2002-02-14 0:56 ` Drew P. Vogel
2002-02-14 13:49 ` J.S.S.
-- strict thread matches above, loose matches on Subject: below --
2002-02-12 21:36 Vladimir G Ivanovic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3C69F4F3.8080208@linuxhq.com \
--to=john.weber@linuxhq.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.