From: Kishon Vijay Abraham I <kishon@ti.com>
To: wlf <wulf@rock-chips.com>, Stephen Rothwell <sfr@canb.auug.org.au>
Cc: <linux-next@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: linux-next: build warning after merge of the phy-next tree
Date: Wed, 16 Nov 2016 22:09:36 +0530 [thread overview]
Message-ID: <3319cf9e-a08e-6c83-ed27-a19b12491b46@ti.com> (raw)
In-Reply-To: <a1364db5-6700-49b6-1435-db9abf00f55d@rock-chips.com>
Hi,
On Wednesday 16 November 2016 06:58 PM, wlf wrote:
> Hi Stephen,
>
> 在 2016年11月16日 11:00, Stephen Rothwell 写道:
>> Hi Kishon,
>>
>> After merging the phy-next tree, today's linux-next build (x86_64
>> allmodconfig) produced this warning:
>>
>> drivers/phy/phy-rockchip-inno-usb2.c: In function 'rockchip_chg_detect_work':
>> drivers/phy/phy-rockchip-inno-usb2.c:717:7: warning: 'tmout' may be used
>> uninitialized in this function [-Wmaybe-uninitialized]
>> if (tmout) {
>> ^
>>
>> Introduced by commit
>>
>> 0c42fe48fd23 ("phy: rockchip-inno-usb2: support otg-port for rk3399")
Thank you for reporting this issue.
> The variable "tmout" is initialized in the prior code "case
> USB_CHG_STATE_WAIT_FOR_DCD",
> and this case will be executed before "if (tmout)", so I think it's a
> mis-warning for some
> special compiler.
>
> Could you provide me some suggestion about this warning? Should I upload a new
> patch to
> fix this compiler mis-warning or just ignore it ? :-)
Arnd has already sent a fix it. I've picked that one.
Thanks
Kishon
next prev parent reply other threads:[~2016-11-16 16:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-16 3:00 Stephen Rothwell
2016-11-16 13:28 ` wlf
2016-11-16 16:39 ` Kishon Vijay Abraham I [this message]
2017-08-22 5:07 Stephen Rothwell
2017-08-24 5:23 ` Stephen Rothwell
2017-08-24 8:01 ` Kishon Vijay Abraham I
2019-03-28 0:29 Stephen Rothwell
2019-03-28 3:03 ` Srinath Mannam
2020-01-07 5:17 Stephen Rothwell
2020-01-07 5:26 ` Ramuthevar, Vadivel MuruganX
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=3319cf9e-a08e-6c83-ed27-a19b12491b46@ti.com \
--to=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
--cc=wulf@rock-chips.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®