USB: EHCI: fix compiler warning introduced by commit 2a40f324541e
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 4 Feb 2016 16:17:36 +0000 (11:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Feb 2016 19:27:11 +0000 (11:27 -0800)
commit1586ba0c218b10cce1de57c45f599dd8831a2d12
tree4fb66ccaa51f3e3a4ad5648703819013c61d608d
parent379d3d33c83b667b0edad0110693567306463882
USB: EHCI: fix compiler warning introduced by commit 2a40f324541e

Fix the following compiler warning (found by the kbuild test robot):

drivers/usb/host/ehci-hcd.c:312:13: warning: 'unlink_empty_async_suspended' declared 'static' but never defined

Commit 2a40f324541e ("USB: EHCI: fix regression during bus resume")
protected the function definition with a "#ifdef CONFIG_PM" block, so
now the declaration needs to be similarly protected.  This patch moves
it to a better location.

Reported-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ehci-hub.c