| To: | "Atsushi Nemoto" <anemo@mba.ocn.ne.jp> |
|---|---|
| Subject: | Re: [PATCH 3/3] signal.c: fix gcc warning on 32 bits kernel |
| From: | "Franck Bui-Huu" <fbuihuu@gmail.com> |
| Date: | Fri, 9 Feb 2007 17:34:16 +0100 |
| Cc: | vagabon.xyz@gmail.com, ralf@linux-mips.org, linux-mips@linux-mips.org |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=dvYMMz8Lu2+p0OVTasPFgyb02ZGFzw/DQw+HJLumNqLMDc+i/aD3ztNIIPcpJXnXi6r4Lq6XsOrvu2Bm9O+wP4PwwDp+VuPtJUO9MdXmGlnUmBtdA2Fz9GbACi+S7TqLNVjPBhtYQuEKhL7x9BClZgylvHYQooKD3gs9HuqdP70= |
| In-reply-to: | <20070210.011835.08318488.anemo@mba.ocn.ne.jp> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <1171033658561-git-send-email-fbuihuu@gmail.com> <11710336591652-git-send-email-fbuihuu@gmail.com> <20070210.011835.08318488.anemo@mba.ocn.ne.jp> |
| Sender: | linux-mips-bounce@linux-mips.org |
On 2/9/07, Atsushi Nemoto <anemo@mba.ocn.ne.jp> wrote: On Fri, 9 Feb 2007 16:07:38 +0100, Franck Bui-Huu <vagabon.xyz@gmail.com> wrote: > new_ka.sa.sa_handler = (__sighandler_t) __gu_tmp; > > Here we try to cast an 'unsigned long long' into a 32 bits pointer and > that's the reason of the warning. This line is never executed on 32bit kernel and gcc optimize out. On yes I agree but it seems that gcc compiles this line before optimizing out... I think this is a problem of __get_user() implementation or gcc itself. Though I can not find better solution yet, hacking the caller to avoid the warning would not be right things to to.
I agree too but I haven't found something else.
BTW, my version of gcc is: mipsel-linux-gcc (GCC) 3.4.4 mipssde-6.05.00-20061023
thanks
--
Franck
|
| Previous by Date: | Re: [PATCH 1/3] signal: avoid useless test in do_signal(), Ralf Baechle |
|---|---|
| Next by Date: | Re: [PATCH 1/3] signal: avoid useless test in do_signal(), Franck Bui-Huu |
| Previous by Thread: | Re: [PATCH 3/3] signal.c: fix gcc warning on 32 bits kernel, Atsushi Nemoto |
| Next by Thread: | Re: [PATCH 3/3] signal.c: fix gcc warning on 32 bits kernel, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |