linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb: xhci: Fix build warning seen with CONFIG_PM=n
@ 2019-12-18  1:19 Guenter Roeck
  2019-12-18 14:29 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 4+ messages in thread
From: Guenter Roeck @ 2019-12-18  1:19 UTC (permalink / raw)
  To: Mathias Nyman
  Cc: Greg Kroah-Hartman, linux-usb, linux-kernel, Guenter Roeck,
	Henry Lin, stable

The following build warning is seen if CONFIG_PM is disabled.

drivers/usb/host/xhci-pci.c:498:13: warning:
	unused function 'xhci_pci_shutdown'

Fixes: f2c710f7dca8 ("usb: xhci: only set D3hot for pci device")
Cc: Henry Lin <henryl@nvidia.com>
Cc: stable@vger.kernel.org	# all stable releases with 2f23dc86c3f8
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
 drivers/usb/host/xhci-pci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/xhci-pci.c b/drivers/usb/host/xhci-pci.c
index 2907fe4d78dd..4917c5b033fa 100644
--- a/drivers/usb/host/xhci-pci.c
+++ b/drivers/usb/host/xhci-pci.c
@@ -519,7 +519,6 @@ static int xhci_pci_resume(struct usb_hcd *hcd, bool hibernated)
 	retval = xhci_resume(xhci, hibernated);
 	return retval;
 }
-#endif /* CONFIG_PM */
 
 static void xhci_pci_shutdown(struct usb_hcd *hcd)
 {
@@ -532,6 +531,7 @@ static void xhci_pci_shutdown(struct usb_hcd *hcd)
 	if (xhci->quirks & XHCI_SPURIOUS_WAKEUP)
 		pci_set_power_state(pdev, PCI_D3hot);
 }
+#endif /* CONFIG_PM */
 
 /*-------------------------------------------------------------------------*/
 
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] usb: xhci: Fix build warning seen with CONFIG_PM=n
  2019-12-18  1:19 [PATCH] usb: xhci: Fix build warning seen with CONFIG_PM=n Guenter Roeck
@ 2019-12-18 14:29 ` Greg Kroah-Hartman
  2019-12-18 15:38   ` Mathias Nyman
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2019-12-18 14:29 UTC (permalink / raw)
  To: Guenter Roeck, Mathias Nyman; +Cc: linux-usb, linux-kernel, Henry Lin, stable

On Tue, Dec 17, 2019 at 05:19:11PM -0800, Guenter Roeck wrote:
> The following build warning is seen if CONFIG_PM is disabled.
> 
> drivers/usb/host/xhci-pci.c:498:13: warning:
> 	unused function 'xhci_pci_shutdown'
> 
> Fixes: f2c710f7dca8 ("usb: xhci: only set D3hot for pci device")
> Cc: Henry Lin <henryl@nvidia.com>
> Cc: stable@vger.kernel.org	# all stable releases with 2f23dc86c3f8
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
>  drivers/usb/host/xhci-pci.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Nice catch.

Mathias, I can queue this up now if you give me an ack.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] usb: xhci: Fix build warning seen with CONFIG_PM=n
  2019-12-18 14:29 ` Greg Kroah-Hartman
@ 2019-12-18 15:38   ` Mathias Nyman
  2019-12-18 15:59     ` Guenter Roeck
  0 siblings, 1 reply; 4+ messages in thread
From: Mathias Nyman @ 2019-12-18 15:38 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Guenter Roeck
  Cc: linux-usb, linux-kernel, Henry Lin, stable

On 18.12.2019 16.29, Greg Kroah-Hartman wrote:
> On Tue, Dec 17, 2019 at 05:19:11PM -0800, Guenter Roeck wrote:
>> The following build warning is seen if CONFIG_PM is disabled.
>>
>> drivers/usb/host/xhci-pci.c:498:13: warning:
>> 	unused function 'xhci_pci_shutdown'
>>
>> Fixes: f2c710f7dca8 ("usb: xhci: only set D3hot for pci device")
>> Cc: Henry Lin <henryl@nvidia.com>
>> Cc: stable@vger.kernel.org	# all stable releases with 2f23dc86c3f8
>> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
>> ---
>>   drivers/usb/host/xhci-pci.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Nice catch.
> 
> Mathias, I can queue this up now if you give me an ack.

Yes, please

Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] usb: xhci: Fix build warning seen with CONFIG_PM=n
  2019-12-18 15:38   ` Mathias Nyman
@ 2019-12-18 15:59     ` Guenter Roeck
  0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2019-12-18 15:59 UTC (permalink / raw)
  To: Mathias Nyman
  Cc: Greg Kroah-Hartman, linux-usb, linux-kernel, Henry Lin, stable

On Wed, Dec 18, 2019 at 05:38:06PM +0200, Mathias Nyman wrote:
> On 18.12.2019 16.29, Greg Kroah-Hartman wrote:
> > On Tue, Dec 17, 2019 at 05:19:11PM -0800, Guenter Roeck wrote:
> > > The following build warning is seen if CONFIG_PM is disabled.
> > > 
> > > drivers/usb/host/xhci-pci.c:498:13: warning:
> > > 	unused function 'xhci_pci_shutdown'
> > > 
> > > Fixes: f2c710f7dca8 ("usb: xhci: only set D3hot for pci device")
> > > Cc: Henry Lin <henryl@nvidia.com>
> > > Cc: stable@vger.kernel.org	# all stable releases with 2f23dc86c3f8

Somehow I messed up the commit sha here. It is f2c710f7dca8, obviously.
2f23dc86c3f8 is the sha from v4.19.y. Sorry for that.

Guenter

> > > Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> > > ---
> > >   drivers/usb/host/xhci-pci.c | 2 +-
> > >   1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > Nice catch.
> > 
> > Mathias, I can queue this up now if you give me an ack.
> 
> Yes, please
> 
> Acked-by: Mathias Nyman <mathias.nyman@linux.intel.com>
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-12-18 15:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-18  1:19 [PATCH] usb: xhci: Fix build warning seen with CONFIG_PM=n Guenter Roeck
2019-12-18 14:29 ` Greg Kroah-Hartman
2019-12-18 15:38   ` Mathias Nyman
2019-12-18 15:59     ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).