All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Wen-chien Jesse Sung <jesse@domain.hid>
Cc: adeos-main@gna.org
Subject: Re: [Adeos-main] PATCH: compilation fix for 2.6.13-i386-1.0-04
Date: Sat, 01 Oct 2005 12:26:07 +0200	[thread overview]
Message-ID: <433E643F.3000402@domain.hid> (raw)
In-Reply-To: <433D0A28.7040603@domain.hid>

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.


      reply	other threads:[~2005-10-01 10:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=433E643F.3000402@domain.hid \
    --to=rpm@xenomai.org \
    --cc=adeos-main@gna.org \
    --cc=jesse@domain.hid \
    /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.