Re: [PATCH] usb: xhci: mark xhci_unmap_td_bounce_buffer() static

2016-09-26 Thread Mathias Nyman
On 23.09.2016 16:46, Baoyou Xie wrote: We get 1 warning when building kernel with W=1: drivers/usb/host/xhci-ring.c:608:6: warning: no previous prototype for 'xhci_unmap_td_bounce_buffer' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't

Re: [PATCH] usb: xhci: mark xhci_unmap_td_bounce_buffer() static

2016-09-26 Thread Mathias Nyman
On 23.09.2016 16:46, Baoyou Xie wrote: We get 1 warning when building kernel with W=1: drivers/usb/host/xhci-ring.c:608:6: warning: no previous prototype for 'xhci_unmap_td_bounce_buffer' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't

Re: [PATCH] usb: xhci: mark xhci_unmap_td_bounce_buffer() static

2016-09-23 Thread Arnd Bergmann
On Friday, September 23, 2016 5:08:37 PM CEST Greg KH wrote: > On Fri, Sep 23, 2016 at 09:46:13PM +0800, Baoyou Xie wrote: > > We get 1 warning when building kernel with W=1: > > drivers/usb/host/xhci-ring.c:608:6: warning: no previous prototype for > > 'xhci_unmap_td_bounce_buffer'

Re: [PATCH] usb: xhci: mark xhci_unmap_td_bounce_buffer() static

2016-09-23 Thread Arnd Bergmann
On Friday, September 23, 2016 5:08:37 PM CEST Greg KH wrote: > On Fri, Sep 23, 2016 at 09:46:13PM +0800, Baoyou Xie wrote: > > We get 1 warning when building kernel with W=1: > > drivers/usb/host/xhci-ring.c:608:6: warning: no previous prototype for > > 'xhci_unmap_td_bounce_buffer'

Re: [PATCH] usb: xhci: mark xhci_unmap_td_bounce_buffer() static

2016-09-23 Thread Greg KH
On Fri, Sep 23, 2016 at 09:46:13PM +0800, Baoyou Xie wrote: > We get 1 warning when building kernel with W=1: > drivers/usb/host/xhci-ring.c:608:6: warning: no previous prototype for > 'xhci_unmap_td_bounce_buffer' [-Wmissing-prototypes] > > In fact, this function is only used in the file in

Re: [PATCH] usb: xhci: mark xhci_unmap_td_bounce_buffer() static

2016-09-23 Thread Greg KH
On Fri, Sep 23, 2016 at 09:46:13PM +0800, Baoyou Xie wrote: > We get 1 warning when building kernel with W=1: > drivers/usb/host/xhci-ring.c:608:6: warning: no previous prototype for > 'xhci_unmap_td_bounce_buffer' [-Wmissing-prototypes] > > In fact, this function is only used in the file in

[PATCH] usb: xhci: mark xhci_unmap_td_bounce_buffer() static

2016-09-23 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/usb/host/xhci-ring.c:608:6: warning: no previous prototype for 'xhci_unmap_td_bounce_buffer' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made

[PATCH] usb: xhci: mark xhci_unmap_td_bounce_buffer() static

2016-09-23 Thread Baoyou Xie
We get 1 warning when building kernel with W=1: drivers/usb/host/xhci-ring.c:608:6: warning: no previous prototype for 'xhci_unmap_td_bounce_buffer' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made