Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1557582

Re: [PATCH] usb: dwc2: host: fix Wmaybe-uninitialized warning

From Nicholas Mc Guire <der.herr@hofr.at>
Newsgroups linux.kernel
Subject Re: [PATCH] usb: dwc2: host: fix Wmaybe-uninitialized warning
Date 2017-01-12 17:40 +0100
Message-ID <sYQzU-6d7-11@gated-at.bofh.it> (permalink)
References <sYPXb-5KY-7@gated-at.bofh.it> <sYQqd-69X-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jan 12, 2017 at 05:25:00PM +0100, Greg Kroah-Hartman wrote:
> On Thu, Jan 12, 2017 at 04:54:38PM +0100, Nicholas Mc Guire wrote:
> > Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
> > ---
> > Problem reported by sparse
> > drivers/usb/dwc2/hcd.c: In function 'dwc2_dump_urb_info':
> > ./include/linux/dynamic_debug.h:134:3: warning: 'pipetype' may be used uninitialized in this function [-Wmaybe-uninitialized]
> >    __dynamic_dev_dbg(&descriptor, dev, fmt, \
> >    ^
> > drivers/usb/dwc2/hcd.c:4492:8: note: 'pipetype' was declared here
> >   char *pipetype;
> >         ^
> > Patch was compile tested with: x86_64_defconfig + CONFIG_USB_DWC2=m +
> > CONFIG_USB_DWC2_VERBOSE=y
> 
> Put the above in the changelog text please, I can't take patches without
> any changelog text :(
>
sorry - simply forgot to put that in - just resent as V2

thx!
hofrat 

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] usb: dwc2: host: fix Wmaybe-uninitialized warning Nicholas Mc Guire <hofrat@osadl.org> - 2017-01-12 17:00 +0100
  Re: [PATCH] usb: dwc2: host: fix Wmaybe-uninitialized warning Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-01-12 17:30 +0100
    Re: [PATCH] usb: dwc2: host: fix Wmaybe-uninitialized warning Nicholas Mc Guire <der.herr@hofr.at> - 2017-01-12 17:40 +0100

csiph-web