* Unable to compile 2.5.4: "control reaches end of non-void functionm"
@ 2002-02-12 21:36 Vladimir G Ivanovic
0 siblings, 0 replies; 8+ messages in thread
From: Vladimir G Ivanovic @ 2002-02-12 21:36 UTC (permalink / raw)
To: linux-kernel
System: Red Hat 7.2 (fully updated) running a 2.4.17 kernel.
* Copied 2.4.17/.config to 2.5.4/.config
* Ran `make oldconfig' and `make dep'
* Then:
# make bzImage
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o scripts/split-include scripts/split-include.c
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/usr/src/linux-2.5.4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr/src/linux-2.5.4/include/asm/thread_info.h:13,
from /usr/src/linux-2.5.4/include/linux/thread_info.h:10,
from /usr/src/linux-2.5.4/include/linux/spinlock.h:7,
from /usr/src/linux-2.5.4/include/linux/mmzone.h:8,
from /usr/src/linux-2.5.4/include/linux/gfp.h:4,
from /usr/src/linux-2.5.4/include/linux/slab.h:14,
from /usr/src/linux-2.5.4/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.5.4/include/asm/processor.h: In function `thread_saved_pc':
/usr/src/linux-2.5.4/include/asm/processor.h:444: dereferencing pointer to incomplete type
/usr/src/linux-2.5.4/include/asm/processor.h:445: warning: control reaches end of non-void functionmake: *** [init/main.o] Error 1
--- Vladimir
--------
Vladimir G. Ivanovic http://leonora.org/~vladimir
2770 Cowper St. vladimir@acm.org
Palo Alto, CA 94306-2447 +1 650 678 8014
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unable to compile 2.5.4: "control reaches end of non-void functionm"
@ 2002-02-13 4:48 Steve Kieu
2002-02-13 13:53 ` J.S.S.
0 siblings, 1 reply; 8+ messages in thread
From: Steve Kieu @ 2002-02-13 4:48 UTC (permalink / raw)
To: kernel
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.
=====
S.KIEU
http://greetings.yahoo.com.au - Yahoo! Greetings
- Send your Valentines love online.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unable to compile 2.5.4: "control reaches end of non-void functionm"
[not found] <fa.l69quuv.1ljio8r@ifi.uio.no>
@ 2002-02-13 5:09 ` John Weber
0 siblings, 0 replies; 8+ messages in thread
From: John Weber @ 2002-02-13 5:09 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Unable to compile 2.5.4: "control reaches end of non-void functionm"
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
0 siblings, 2 replies; 8+ messages in thread
From: J.S.S. @ 2002-02-13 13:53 UTC (permalink / raw)
To: Steve Kieu; +Cc: linux-kernel
I have this same problem on both my laptop and my testbox. It happens
everytime and I have yet to compile 2.5.4 successfully. Although, I suspect
it's in my config file - I'm just using an old config file I used for my
2.4.17 kernel which works just fine.
-----Original Message-----
From: linux-kernel-owner@vger.kernel.org
[mailto:linux-kernel-owner@vger.kernel.org]On Behalf Of Steve Kieu
Sent: Tuesday, February 12, 2002 8:49 PM
To: kernel
Subject: Re: Unable to compile 2.5.4: "control reaches end of non-void
functionm"
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.
=====
S.KIEU
http://greetings.yahoo.com.au - Yahoo! Greetings
- Send your Valentines love online.
-
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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Unable to compile 2.5.4: "control reaches end of non-void functionm"
2002-02-13 13:53 ` J.S.S.
@ 2002-02-13 16:27 ` Daniel J Blueman
2002-02-14 0:56 ` Drew P. Vogel
1 sibling, 0 replies; 8+ messages in thread
From: Daniel J Blueman @ 2002-02-13 16:27 UTC (permalink / raw)
To: jss, 'Steve Kieu'; +Cc: 'linux-kernel'
Steve,
I get the same/similar issue:
[root@athena linux-2.5.4]# make install
scripts/split-include include/linux/autoconf.h include/config
gcc -D__KERNEL__ -I/usr/src/linux-2.5.4/include -Wall
-Wstrict-prototypes -Wno-t
rigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe
-mprefe
rred-stack-boundary=2 -march=i586 -DKBUILD_BASENAME=main -c -o
init/main.o ini
t/main.c
In file included from /usr/src/linux-2.5.4/include/asm/thread_info.h:13,
from
/usr/src/linux-2.5.4/include/linux/thread_info.h:10,
from /usr/src/linux-2.5.4/include/linux/spinlock.h:7,
from /usr/src/linux-2.5.4/include/linux/mmzone.h:8,
from /usr/src/linux-2.5.4/include/linux/gfp.h:4,
from /usr/src/linux-2.5.4/include/linux/slab.h:14,
from /usr/src/linux-2.5.4/include/linux/proc_fs.h:5,
from init/main.c:15:
/usr/src/linux-2.5.4/include/asm/processor.h: In function
`thread_saved_pc':
/usr/src/linux-2.5.4/include/asm/processor.h:444: dereferencing pointer
to incom
plete type
/usr/src/linux-2.5.4/include/asm/processor.h:445: warning: control
reaches end o
f non-void function
make: *** [init/main.o] Error 1
[root@athena linux-2.5.4]#
____________________
Daniel J Blueman
> -----Original Message-----
> From: linux-kernel-owner@vger.kernel.org
> [mailto:linux-kernel-owner@vger.kernel.org] On Behalf Of J.S.S.
> Sent: 13 February 2002 13:54
> To: Steve Kieu
> Cc: linux-kernel
> Subject: RE: Unable to compile 2.5.4: "control reaches end of
> non-void functionm"
>
>
> I have this same problem on both my laptop and my testbox.
> It happens everytime and I have yet to compile 2.5.4
> successfully. Although, I suspect it's in my config file -
> I'm just using an old config file I used for my 2.4.17 kernel
> which works just fine.
>
> -----Original Message-----
> From: linux-kernel-owner@vger.kernel.org
> [mailto:linux-kernel-owner@vger.kernel.org]On Behalf Of Steve Kieu
> Sent: Tuesday, February 12, 2002 8:49 PM
> To: kernel
> Subject: Re: Unable to compile 2.5.4: "control reaches end of
> non-void functionm"
>
>
>
> 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.
>
>
>
> =====
> S.KIEU
>
http://greetings.yahoo.com.au - Yahoo! Greetings
- Send your Valentines love online.
-
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/
-
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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Unable to compile 2.5.4: "control reaches end of non-void functionm"
[not found] <fa.j3e61kv.181e63g@ifi.uio.no>
@ 2002-02-13 17:34 ` Per Persson
0 siblings, 0 replies; 8+ messages in thread
From: Per Persson @ 2002-02-13 17:34 UTC (permalink / raw)
To: linux-kernel
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/
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Unable to compile 2.5.4: "control reaches end of non-void functionm"
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.
1 sibling, 1 reply; 8+ messages in thread
From: Drew P. Vogel @ 2002-02-14 0:56 UTC (permalink / raw)
To: J.S.S.; +Cc: Steve Kieu, linux-kernel
If it is in processor.h, search the archives. There was a patch for this
submitted to the list about a week ago.
--Drew Vogel
On Wed, 13 Feb 2002, J.S.S. wrote:
>I have this same problem on both my laptop and my testbox. It happens
>everytime and I have yet to compile 2.5.4 successfully. Although, I suspect
>it's in my config file - I'm just using an old config file I used for my
>2.4.17 kernel which works just fine.
>
>-----Original Message-----
>From: linux-kernel-owner@vger.kernel.org
>[mailto:linux-kernel-owner@vger.kernel.org]On Behalf Of Steve Kieu
>Sent: Tuesday, February 12, 2002 8:49 PM
>To: kernel
>Subject: Re: Unable to compile 2.5.4: "control reaches end of non-void
>functionm"
>
>
>
>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.
>
>
>
>=====
>S.KIEU
>
>http://greetings.yahoo.com.au - Yahoo! Greetings
>- Send your Valentines love online.
>-
>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/
>
>-
>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/
>
--Drew Vogel
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Unable to compile 2.5.4: "control reaches end of non-void functionm"
2002-02-14 0:56 ` Drew P. Vogel
@ 2002-02-14 13:49 ` J.S.S.
0 siblings, 0 replies; 8+ messages in thread
From: J.S.S. @ 2002-02-14 13:49 UTC (permalink / raw)
To: Drew P. Vogel; +Cc: linux-kernel
Got it. Fixed it.
Still getting the video.o compile problem, but this hasn't been fixed yet
(although it's been discussed a bit, the outcome wasn't too clear).
-----Original Message-----
From: Drew P. Vogel [mailto:dvogel@intercarve.net]
Sent: Wednesday, February 13, 2002 4:56 PM
To: J.S.S.
Cc: Steve Kieu; linux-kernel
Subject: RE: Unable to compile 2.5.4: "control reaches end of non-void
functionm"
If it is in processor.h, search the archives. There was a patch for this
submitted to the list about a week ago.
--Drew Vogel
On Wed, 13 Feb 2002, J.S.S. wrote:
>I have this same problem on both my laptop and my testbox. It happens
>everytime and I have yet to compile 2.5.4 successfully. Although, I
suspect
>it's in my config file - I'm just using an old config file I used for my
>2.4.17 kernel which works just fine.
>
>-----Original Message-----
>From: linux-kernel-owner@vger.kernel.org
>[mailto:linux-kernel-owner@vger.kernel.org]On Behalf Of Steve Kieu
>Sent: Tuesday, February 12, 2002 8:49 PM
>To: kernel
>Subject: Re: Unable to compile 2.5.4: "control reaches end of non-void
>functionm"
>
>
>
>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.
>
>
>
>=====
>S.KIEU
>
>http://greetings.yahoo.com.au - Yahoo! Greetings
>- Send your Valentines love online.
>-
>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/
>
>-
>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/
>
--Drew Vogel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2002-02-14 13:46 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <fa.l69quuv.1ljio8r@ifi.uio.no>
2002-02-13 5:09 ` Unable to compile 2.5.4: "control reaches end of non-void functionm" John Weber
[not found] <fa.j3e61kv.181e63g@ifi.uio.no>
2002-02-13 17:34 ` 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox