usb/xhci: fix compilation warning when !CONFIG_PCI && !CONFIG_PM
commit01bb59ebffupstream. 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 commit421aa841a1"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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8ccd1a5521
commit
f97f28f902
@ -394,16 +394,16 @@ static int xhci_try_enable_msi(struct usb_hcd *hcd)
|
||||
|
||||
#else
|
||||
|
||||
static int xhci_try_enable_msi(struct usb_hcd *hcd)
|
||||
static inline int xhci_try_enable_msi(struct usb_hcd *hcd)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void xhci_cleanup_msix(struct xhci_hcd *xhci)
|
||||
static inline void xhci_cleanup_msix(struct xhci_hcd *xhci)
|
||||
{
|
||||
}
|
||||
|
||||
static void xhci_msix_sync_irqs(struct xhci_hcd *xhci)
|
||||
static inline void xhci_msix_sync_irqs(struct xhci_hcd *xhci)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user