usb/xhci: fix compilation warning when !CONFIG_PCI && !CONFIG_PM
authorDavid Cohen <david.a.cohen@linux.intel.com>
Fri, 25 Apr 2014 16:20:16 +0000 (19:20 +0300)
committerBen Hutchings <ben@decadent.org.uk>
Sun, 18 May 2014 13:58:08 +0000 (14:58 +0100)
commit42eb6ec92202136f18b50f69d1bec89c14badc60
tree26b9542deef17cc0d56e035cbc3566dc1b476191
parentb9c6d6dae2dc8dc5fe991eb3bdc34233d9262b80
usb/xhci: fix compilation warning when !CONFIG_PCI && !CONFIG_PM

commit 01bb59ebffdec314da8da66266edf29529372f9b upstream.

When CONFIG_PCI and CONFIG_PM are not selected, xhci.c gets this
warning:
drivers/usb/host/xhci.c:409:13: warning: ‘xhci_msix_sync_irqs’ defined
but not used [-Wunused-function]

Instead of creating nested #ifdefs, this patch fixes it by defining the
xHCI PCI stubs as inline.

This warning has been in since 3.2 kernel and was
caused by commit 421aa841a134f6a743111cf44d0c6d3b45e3cf8c
"usb/xhci: hide MSI code behind PCI bars", but wasn't noticed
until 3.13 when a configuration with these options was tried

Signed-off-by: David Cohen <david.a.cohen@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/host/xhci.c