From: wlf <wulf@rock-chips.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>,
Kishon Vijay Abraham I <kishon@ti.com>
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 21:28:43 +0800 [thread overview]
Message-ID: <a1364db5-6700-49b6-1435-db9abf00f55d@rock-chips.com> (raw)
In-Reply-To: <20161116140004.465a98af@canb.auug.org.au>
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")
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 ? :-)
Best regards,
wulf
>
next prev parent reply other threads:[~2016-11-16 13:29 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 [this message]
2016-11-16 16:39 ` Kishon Vijay Abraham I
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=a1364db5-6700-49b6-1435-db9abf00f55d@rock-chips.com \
--to=wulf@rock-chips.com \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=sfr@canb.auug.org.au \
/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®