From: Felipe Balbi <balbi@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] usb: dwc3: fix build warnings
Date: Fri, 16 Oct 2015 15:09:19 -0500 [thread overview]
Message-ID: <871tculgnk.fsf@saruman.tx.rr.com> (raw)
In-Reply-To: <1443727338-29320-2-git-send-email-balbi@ti.com>
Felipe Balbi <balbi@ti.com> writes:
> fix the following build warnings:
>
> drivers/usb/dwc3/core.c: In function ?dwc3_uboot_init?:
> drivers/usb/dwc3/core.c:625:6: warning: ?dev? is used uninitialized in this function [-Wuninitialized]
> mem = devm_kzalloc(dev, sizeof(*dwc) + DWC3_ALIGN_MASK, GFP_KERNEL);
> ^
> drivers/usb/dwc3/dwc3-omap.c: In function ?dwc3_omap_uboot_init?:
> drivers/usb/dwc3/dwc3-omap.c:380:7: warning: ?dev? is used uninitialized in this function [-Wuninitialized]
> omap = devm_kzalloc(dev, sizeof(*omap), GFP_KERNEL);
>
> Signed-off-by: Felipe Balbi <balbi@ti.com>
ping
> ---
> drivers/usb/dwc3/core.c | 2 +-
> drivers/usb/dwc3/dwc3-omap.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c
> index ab3c94e51275..a95d461a7cc4 100644
> --- a/drivers/usb/dwc3/core.c
> +++ b/drivers/usb/dwc3/core.c
> @@ -613,7 +613,7 @@ static void dwc3_core_exit_mode(struct dwc3 *dwc)
> int dwc3_uboot_init(struct dwc3_device *dwc3_dev)
> {
> struct dwc3 *dwc;
> - struct device *dev;
> + struct device *dev = NULL;
> u8 lpm_nyet_threshold;
> u8 tx_de_emphasis;
> u8 hird_threshold;
> diff --git a/drivers/usb/dwc3/dwc3-omap.c b/drivers/usb/dwc3/dwc3-omap.c
> index ac9a856190f0..3dcc2f484777 100644
> --- a/drivers/usb/dwc3/dwc3-omap.c
> +++ b/drivers/usb/dwc3/dwc3-omap.c
> @@ -374,7 +374,7 @@ static void dwc3_omap_set_utmi_mode(struct dwc3_omap *omap, int utmi_mode)
> int dwc3_omap_uboot_init(struct dwc3_omap_device *omap_dev)
> {
> u32 reg;
> - struct device *dev;
> + struct device *dev = NULL;
> struct dwc3_omap *omap;
>
> omap = devm_kzalloc(dev, sizeof(*omap), GFP_KERNEL);
> --
> 2.5.3
>
--
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151016/faef5ead/attachment.sig>
next prev parent reply other threads:[~2015-10-16 20:09 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-01 19:22 [U-Boot] [PATCH 1/2] usb: host: xhci-omap: fix build break Felipe Balbi
2015-10-01 19:22 ` [U-Boot] [PATCH 2/2] usb: dwc3: fix build warnings Felipe Balbi
2015-10-16 20:09 ` Felipe Balbi [this message]
2015-11-28 1:30 ` Marek Vasut
2015-10-16 20:09 ` [U-Boot] [PATCH 1/2] usb: host: xhci-omap: fix build break Felipe Balbi
2015-10-16 21:35 ` Tom Rini
2015-10-16 22:08 ` Felipe Balbi
2015-10-21 8:37 ` Peter Robinson
2015-10-21 11:55 ` Tom Rini
2015-10-21 12:24 ` Peter Robinson
2015-10-21 13:09 ` Tom Rini
2015-11-28 1:33 ` Marek Vasut
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=871tculgnk.fsf@saruman.tx.rr.com \
--to=balbi@ti.com \
--cc=u-boot@lists.denx.de \
/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.