summaryrefslogtreecommitdiffstats
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2023-05-16 22:17:42 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-29 15:49:21 +0100
commit8e6bd945e6dde64fbc60ec3fe252164493a8d3a2 (patch)
tree6082fcea6141d6c7d1a164fe0387e6a4f92eeef1 /drivers/usb/cdns3/cdns3-imx.c
parent342161c11403ea00e9febc16baab1d883d589d04 (diff)
downloadlinux-8e6bd945e6dde64fbc60ec3fe252164493a8d3a2.tar.gz
linux-8e6bd945e6dde64fbc60ec3fe252164493a8d3a2.tar.bz2
linux-8e6bd945e6dde64fbc60ec3fe252164493a8d3a2.zip
usb: hide unused usbfs_notify_suspend/resume functions
The declaration is in an #ifdef, which causes warnings when building with 'make W=1' and without CONFIG_PM: drivers/usb/core/devio.c:742:6: error: no previous prototype for 'usbfs_notify_suspend' drivers/usb/core/devio.c:747:6: error: no previous prototype for 'usbfs_notify_resume' Use the same #ifdef check around the function definitions to avoid the warnings and slightly shrink the USB core. Fixes: 7794f486ed0b ("usbfs: Add ioctls for runtime power management") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/20230516202103.558301-1-arnd@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions