mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-23 13:05:21 +00:00
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>
35 lines
684 B
C
35 lines
684 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Cadence USBSS and USBSSP DRD Driver - Host Export APIs
|
|
*
|
|
* Copyright (C) 2017-2018 NXP
|
|
*
|
|
* Authors: Peter Chen <peter.chen@nxp.com>
|
|
*/
|
|
#ifndef __LINUX_CDNS3_HOST_EXPORT
|
|
#define __LINUX_CDNS3_HOST_EXPORT
|
|
|
|
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);
|
|
|
|
#else
|
|
|
|
static inline int cdns_host_init(struct cdns *cdns)
|
|
{
|
|
return -ENXIO;
|
|
}
|
|
|
|
static inline void cdns_host_exit(struct cdns *cdns) { }
|
|
static inline int xhci_cdns3_suspend_quirk(struct usb_hcd *hcd)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif /* USB_CDNS_HOST */
|
|
|
|
#endif /* __LINUX_CDNS3_HOST_EXPORT */
|