From: "Per Persson" <per.persson@gnosjo.pp.se>
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 18:34:35 +0100 [thread overview]
Message-ID: <006701c1b4b4$b8ef7ba0$0b02a8c0@pcu80> (raw)
In-Reply-To: <fa.j3e61kv.181e63g@ifi.uio.no>
Hi all!
I had the same problem but found the following post from David Howells.
/Per
> Subject: [PATCH] 2.5.4 compile error fix
>
>
> Hi Linus,
>
> This patch fixes <asm-i386/processor.h> trying to access task_struct (which
> can't have been defined at that point).
>
> David
>
> diff -uNr linux-2.5.4/include/asm-i386/processor.h linux-orn-254/include/asm-i386/processor.h
> --- linux-2.5.4/include/asm-i386/processor.h Mon Feb 11 09:41:35 2002
> +++ linux-orn-254/include/asm-i386/processor.h Mon Feb 11 10:29:29 2002
> @@ -439,10 +439,7 @@
> /*
> * 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];
> -}
> +#define thread_saved_pc(TSK) (((unsigned long *)(TSK)->thread.esp)[3])
>
> unsigned long get_wchan(struct task_struct *p);
> #define KSTK_EIP(tsk) (((unsigned long *)(4096+(unsigned long)(tsk)->thread_info))[1019])
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next parent reply other threads:[~2002-02-13 17:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <fa.j3e61kv.181e63g@ifi.uio.no>
2002-02-13 17:34 ` Per Persson [this message]
[not found] <fa.l69quuv.1ljio8r@ifi.uio.no>
2002-02-13 5:09 ` John Weber
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='006701c1b4b4$b8ef7ba0$0b02a8c0@pcu80' \
--to=per.persson@gnosjo.pp.se \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®