* [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
* Re: [PATCH] usb: fix build warning in pci-quirks.h when CONFIG_PCI is not enabled
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
0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2013-07-23 22:48 UTC (permalink / raw)
To: Randy Dunlap, Sarah Sharp
Cc: LKML, USB list, Geert Uytterhoeven, Moiz Sonasath
On Tue, Jul 23, 2013 at 03:22:59PM -0700, Randy Dunlap wrote:
> 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 +
$ ./scripts/get_maintainer.pl --file drivers/usb/host/pci-quirks.h
Sarah Sharp <sarah.a.sharp@linux.intel.com> (supporter:USB XHCI DRIVER)
Greg Kroah-Hartman <gregkh@linuxfoundation.org> (supporter:USB SUBSYSTEM)
linux-usb@vger.kernel.org (open list:USB XHCI DRIVER)
linux-kernel@vger.kernel.org (open list)
Sarah should get this patch, thanks.
greg k-h
^ 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