public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: fix build warning in pci-quirks.h when CONFIG_PCI is not enabled
@ 2013-07-23 22:22 Randy Dunlap
  2013-07-23 22:48 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2013-07-23 22:22 UTC (permalink / raw)
  To: LKML, USB list; +Cc: Greg Kroah-Hartman, Geert Uytterhoeven, Moiz Sonasath

From: Randy Dunlap <rdunlap@infradead.org>

Fix warning when CONFIG_PCI is not enabled
(from commit 296365781903226a3fb8758901eaeec09d2798e4).

drivers/usb/host/pci-quirks.h: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Moiz Sonasath <m-sonasath@ti.com>
---
 drivers/usb/host/pci-quirks.h |    1 +
 1 file changed, 1 insertion(+)

--- lnx-311-rc2.orig/drivers/usb/host/pci-quirks.h
+++ lnx-311-rc2/drivers/usb/host/pci-quirks.h
@@ -13,6 +13,7 @@ void usb_enable_xhci_ports(struct pci_de
 void usb_disable_xhci_ports(struct pci_dev *xhci_pdev);
 void sb800_prefetch(struct device *dev, int on);
 #else
+struct pci_dev;
 static inline void usb_amd_quirk_pll_disable(void) {}
 static inline void usb_amd_quirk_pll_enable(void) {}
 static inline void usb_amd_dev_put(void) {}

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

end of thread, other threads:[~2013-07-23 22:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-23 22:22 [PATCH] usb: fix build warning in pci-quirks.h when CONFIG_PCI is not enabled Randy Dunlap
2013-07-23 22:48 ` Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox