diff options
| author | Arnd Bergmann <[email protected]> | 2023-05-16 20:17:42 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-05-29 14:49:21 +0000 |
| commit | 8e6bd945e6dde64fbc60ec3fe252164493a8d3a2 (patch) | |
| tree | 6082fcea6141d6c7d1a164fe0387e6a4f92eeef1 /drivers/usb/cdns3/cdns3-starfive.c | |
| parent | usb: phy: phy-tahvo: fix memory leak in tahvo_usb_probe() (diff) | |
| download | kernel-8e6bd945e6dde64fbc60ec3fe252164493a8d3a2.tar.gz kernel-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 <[email protected]>
Reviewed-by: Sebastian Reichel <[email protected]>
Acked-by: Alan Stern <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions
