未验证 提交 b13f020d 编写于 作者: R Randy Dunlap 提交者: Peter Chen

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: NRandy 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: NPeter Chen <peter.chen@nxp.com>
上级 28a25ba3
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
#ifndef __LINUX_CDNS3_HOST_EXPORT #ifndef __LINUX_CDNS3_HOST_EXPORT
#define __LINUX_CDNS3_HOST_EXPORT #define __LINUX_CDNS3_HOST_EXPORT
#if IS_ENABLED(CONFIG_USB_CDNS_HOST)
struct usb_hcd; struct usb_hcd;
#if IS_ENABLED(CONFIG_USB_CDNS_HOST)
int cdns_host_init(struct cdns *cdns); int cdns_host_init(struct cdns *cdns);
int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd); int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册