summaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/host-export.h
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@infradead.org>2020-12-08 11:55:47 -0800
committerPeter Chen <peter.chen@nxp.com>2020-12-29 12:36:13 +0800
commitb13f020d0c9f03d8c6f63f06ac4cfea76a212afb (patch)
tree8cc1679ad61318013aba2e7474d26a2f18f1f611 /drivers/usb/cdns3/host-export.h
parent28a25ba3e59263a66b2a2cd3e153351b2db2a6b6 (diff)
usb: cdns3: fix warning when USB_CDNS_HOST is not set
Fix a build warning when USB_CDNS_HOST is not enabled: In file included from ../drivers/usb/cdns3/core.c:23:0: ../drivers/usb/cdns3/host-export.h:27:51: warning: ‘struct usb_hcd’ declared inside parameter list will not be visible outside of this definition or declaration static inline int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd) ^~~~~~~ Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Peter Chen <peter.chen@nxp.com> Cc: Pawel Laszczak <pawell@cadence.com> Cc: Roger Quadros <rogerq@ti.com> Cc: linux-usb@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat (limited to 'drivers/usb/cdns3/host-export.h')
-rw-r--r--drivers/usb/cdns3/host-export.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/cdns3/host-export.h b/drivers/usb/cdns3/host-export.h
index 087e1921e1f5..fb8541b8adbc 100644
--- a/drivers/usb/cdns3/host-export.h
+++ b/drivers/usb/cdns3/host-export.h
@@ -9,10 +9,10 @@
#ifndef __LINUX_CDNS3_HOST_EXPORT
#define __LINUX_CDNS3_HOST_EXPORT
-#if IS_ENABLED(CONFIG_USB_CDNS_HOST)
-
struct usb_hcd;
+#if IS_ENABLED(CONFIG_USB_CDNS_HOST)
+
int cdns_host_init(struct cdns *cdns);
int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd);