All of lore.kernel.org
 help / color / mirror / Atom feed
* [Adeos-main] PATCH: compilation fix for 2.6.13-i386-1.0-04
@ 2005-09-30  9:49 Wen-chien Jesse Sung
  2005-10-01 10:26 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Wen-chien Jesse Sung @ 2005-09-30  9:49 UTC (permalink / raw)
  To: adeos-main

[-- Attachment #1: Type: text/plain, Size: 1934 bytes --]

Hi,

I got this error message with 2.6.13-i386-1.0-04:

  CC      arch/i386/kernel/ipipe-core.o
arch/i386/kernel/ipipe-core.c: In function '__ipipe_if_fixup_root':
arch/i386/kernel/ipipe-core.c:549: warning: 'flags' is used
uninitialized in this function
arch/i386/kernel/ipipe-core.c: In function '__ipipe_kpreempt_root':
arch/i386/kernel/ipipe-core.c:585: warning: 'flags' is used
uninitialized in this function
arch/i386/kernel/ipipe-core.c: In function '__ipipe_syscall_root':
arch/i386/kernel/ipipe-core.c:549: warning: 'flags' is used
uninitialized in this function
arch/i386/kernel/ipipe-core.c:549: warning: 'flags' is used
uninitialized in this function
arch/i386/kernel/ipipe-core.c: In function '__ipipe_handle_exception':
arch/i386/kernel/ipipe-core.c:549: warning: 'flags' is used
uninitialized in this function
arch/i386/kernel/ipipe-core.c: In function '__ipipe_divert_exception':
arch/i386/kernel/ipipe-core.c:549: warning: 'flags' is used
uninitialized in this function
/bin/sh: line 1: 23642 Done                    gcc -m32 -E
-D__GENKSYMS__ -Wp,-MD,arch/i386/kernel/.ipipe-core.o.d -nostdinc
-isystem /usr/lib/gcc/i486-linux-gnu/4.0.2/include -D__KERNEL__
-Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -ffreestanding -Os -fno-omit-frame-pointer
-fno-optimize-sibling-calls -pipe -msoft-float
-mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i486 -mregparm=3
-Iinclude/asm-i386/mach-default -Wdeclaration-after-statement
-Wno-pointer-sign -DKBUILD_BASENAME=ipipe_core
-DKBUILD_MODNAME=ipipe_core arch/i386/kernel/ipipe-core.c
     23644 Segmentation fault      | scripts/genksyms/genksyms
>arch/i386/kernel/.tmp_ipipe-core.vermake[1]: ***
[arch/i386/kernel/ipipe-core.o] Error 139
make: *** [arch/i386/kernel] Error 2


Place the fastcall qualifier in front of "void" then genksyms does not
fail with Segmentation fault again. :)

-- 
Best Regards,
Wen-chien Jesse Sung

[-- Attachment #2: 30_adeos-compilation-fix.patch --]
[-- Type: text/x-patch, Size: 721 bytes --]

Index: linux-2.6.13-js1-opnet/arch/i386/kernel/ipipe-core.c
===================================================================
--- linux-2.6.13-js1-opnet.orig/arch/i386/kernel/ipipe-core.c	2005-09-30 16:00:01.000000000 +0800
+++ linux-2.6.13-js1-opnet/arch/i386/kernel/ipipe-core.c	2005-09-30 16:02:11.000000000 +0800
@@ -694,7 +694,7 @@
 fastcall void do_simd_coprocessor_error(struct pt_regs *regs, long error_code);
 fastcall void do_iret_error(struct pt_regs *regs, long error_code);
 
-static void (fastcall *__ipipe_std_extable[])(struct pt_regs *, long) = {
+static fastcall void (*__ipipe_std_extable[])(struct pt_regs *, long) = {
 
 	[ex_do_divide_error] = &do_divide_error,
 	[ex_do_overflow] = &do_overflow,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Adeos-main] PATCH: compilation fix for 2.6.13-i386-1.0-04
  2005-09-30  9:49 [Adeos-main] PATCH: compilation fix for 2.6.13-i386-1.0-04 Wen-chien Jesse Sung
@ 2005-10-01 10:26 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2005-10-01 10:26 UTC (permalink / raw)
  To: Wen-chien Jesse Sung; +Cc: adeos-main

Wen-chien Jesse Sung wrote:
> Hi,
> 
> I got this error message with 2.6.13-i386-1.0-04:
> 
>   CC      arch/i386/kernel/ipipe-core.o
> arch/i386/kernel/ipipe-core.c: In function '__ipipe_if_fixup_root':
> arch/i386/kernel/ipipe-core.c:549: warning: 'flags' is used
> uninitialized in this function
> arch/i386/kernel/ipipe-core.c: In function '__ipipe_kpreempt_root':
> arch/i386/kernel/ipipe-core.c:585: warning: 'flags' is used
> uninitialized in this function
> arch/i386/kernel/ipipe-core.c: In function '__ipipe_syscall_root':
> arch/i386/kernel/ipipe-core.c:549: warning: 'flags' is used
> uninitialized in this function
> arch/i386/kernel/ipipe-core.c:549: warning: 'flags' is used
> uninitialized in this function
> arch/i386/kernel/ipipe-core.c: In function '__ipipe_handle_exception':
> arch/i386/kernel/ipipe-core.c:549: warning: 'flags' is used
> uninitialized in this function
> arch/i386/kernel/ipipe-core.c: In function '__ipipe_divert_exception':
> arch/i386/kernel/ipipe-core.c:549: warning: 'flags' is used
> uninitialized in this function
> /bin/sh: line 1: 23642 Done                    gcc -m32 -E
> -D__GENKSYMS__ -Wp,-MD,arch/i386/kernel/.ipipe-core.o.d -nostdinc
> -isystem /usr/lib/gcc/i486-linux-gnu/4.0.2/include -D__KERNEL__
> -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
> -fno-common -ffreestanding -Os -fno-omit-frame-pointer
> -fno-optimize-sibling-calls -pipe -msoft-float
> -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i486 -mregparm=3
> -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement
> -Wno-pointer-sign -DKBUILD_BASENAME=ipipe_core
> -DKBUILD_MODNAME=ipipe_core arch/i386/kernel/ipipe-core.c
>      23644 Segmentation fault      | scripts/genksyms/genksyms
> 
>>arch/i386/kernel/.tmp_ipipe-core.vermake[1]: ***
> 
> [arch/i386/kernel/ipipe-core.o] Error 139
> make: *** [arch/i386/kernel] Error 2
> 
> 
> Place the fastcall qualifier in front of "void" then genksyms does not
> fail with Segmentation fault again. :)
> 

Hm, interesting... Ok, applied, thanks. To play it safe, function pointers
obtained from this array are re-cast so that the fast call convention will be
enforced individually at invocation time anyway. Should be ok, then.

> 
> 
> ------------------------------------------------------------------------
> 
> Index: linux-2.6.13-js1-opnet/arch/i386/kernel/ipipe-core.c
> ===================================================================
> --- linux-2.6.13-js1-opnet.orig/arch/i386/kernel/ipipe-core.c	2005-09-30 16:00:01.000000000 +0800
> +++ linux-2.6.13-js1-opnet/arch/i386/kernel/ipipe-core.c	2005-09-30 16:02:11.000000000 +0800
> @@ -694,7 +694,7 @@
>  fastcall void do_simd_coprocessor_error(struct pt_regs *regs, long error_code);
>  fastcall void do_iret_error(struct pt_regs *regs, long error_code);
>  
> -static void (fastcall *__ipipe_std_extable[])(struct pt_regs *, long) = {
> +static fastcall void (*__ipipe_std_extable[])(struct pt_regs *, long) = {
>  
>  	[ex_do_divide_error] = &do_divide_error,
>  	[ex_do_overflow] = &do_overflow,
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Adeos-main mailing list
> Adeos-main@domain.hid
> https://mail.gna.org/listinfo/adeos-main


-- 

Philippe.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-01 10:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-30  9:49 [Adeos-main] PATCH: compilation fix for 2.6.13-i386-1.0-04 Wen-chien Jesse Sung
2005-10-01 10:26 ` Philippe Gerum

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.