All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Warren <swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
To: Fengguang Wu <fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Shawn Guo <shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	"Sascha Hauer (s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org)"
	<s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
Subject: Re: [arm-tegra:for-3.9/arm-timer-rework 11/12] arch/arm/mach-imx/imx31-dt.c:36:2: warning: initialization from incompatible pointer type
Date: Tue, 29 Jan 2013 20:47:28 -0700	[thread overview]
Message-ID: <510897D0.2010001@wwwdotorg.org> (raw)
In-Reply-To: <20130130013524.GA11967@localhost>

On 01/29/2013 06:35 PM, Fengguang Wu wrote:
> On Tue, Jan 29, 2013 at 12:13:40PM -0700, Stephen Warren wrote:
>> On 01/29/2013 11:55 AM, kbuild test robot wrote:
>>> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/swarren/linux-tegra.git for-3.9/arm-timer-rework
>>> head:   ae278a935f086775e8ae31a8ec9f7224ea25ea3c
>>> commit: 6bb27d7349db51b50c40534710fe164ca0d58902 [11/12] ARM: delete struct sys_timer
>>> config: make ARCH=arm imx_v6_v7_defconfig
>>>
>>> All warnings:
>>>
>>>>> arch/arm/mach-imx/imx31-dt.c:36:2: warning: initialization from incompatible pointer type [enabled by default]
>>>>> arch/arm/mach-imx/imx31-dt.c:36:2: warning: (near initialization for '__mach_desc_IMX31_DT.init_time') [enabled by default]
>>
>> I don't see this warning with gcc-4.5.3, and the warning above doesn't
>> seem to match the code below at line 36 either. Was the source tree
>> corrupt somehow?
> 
> Stephen, I can reproduce the problem with gcc-4.6.3, but at a
> different line number (weird):
> 
> /c/wfg/sound/arch/arm/mach-imx/imx31-dt.c:51:2: warning: initialization from incompatible pointer type [enabled by default]
> /c/wfg/sound/arch/arm/mach-imx/imx31-dt.c:51:2: warning: (near initialization for '__mach_desc_IMX31_DT.init_time') [enabled by
> default]

OK, I've reproduced the problem now, and is indeed real. I'll whip up a
patch.

The very very odd thing is that imx31-dt.c is only compiled if
CONFIG_MACH_IMX31_DT, and imx_v6_v7_defconfig doesn't specify a value
for that option, so it's disabled when I "make imx_v6_v7_defconfig". If
I manually enable the option via "make menuconfig", then I do see this
problem.

      reply	other threads:[~2013-01-30  3:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-29 18:55 [arm-tegra:for-3.9/arm-timer-rework 11/12] arch/arm/mach-imx/imx31-dt.c:36:2: warning: initialization from incompatible pointer type kbuild test robot
     [not found] ` <51081b3d.Rfc8JxYDG0uLRpnk%fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2013-01-29 19:13   ` Stephen Warren
     [not found]     ` <51081F64.8040604-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2013-01-30  1:35       ` Fengguang Wu
2013-01-30  3:47         ` Stephen Warren [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=510897D0.2010001@wwwdotorg.org \
    --to=swarren-3lzwwm7+weoh9zmkesr00q@public.gmane.org \
    --cc=fengguang.wu-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=s.hauer-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
    --cc=shawn.guo-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.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 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.