Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

usb: renesas_usbhs: mark PM functions as __maybe_unused

Without CONFIG_PM, we get a new build warning here:

drivers/usb/renesas_usbhs/common.c:860:12: error: 'usbhsc_resume' defined but not used [-Werror=unused-function]
static int usbhsc_resume(struct device *dev)
^~~~~~~~~~~~~
drivers/usb/renesas_usbhs/common.c:844:12: error: 'usbhsc_suspend' defined but not used [-Werror=unused-function]
static int usbhsc_suspend(struct device *dev)
^~~~~~~~~~~~~~

Fixes: d54d334e75b9 ("usb: renesas_usbhs: Use SIMPLE_DEV_PM_OPS macro")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Arnd Bergmann and committed by
Greg Kroah-Hartman
eaf3074e c238ec3e

+2 -2
+2 -2
drivers/usb/renesas_usbhs/common.c
··· 841 841 return 0; 842 842 } 843 843 844 - static int usbhsc_suspend(struct device *dev) 844 + static __maybe_unused int usbhsc_suspend(struct device *dev) 845 845 { 846 846 struct usbhs_priv *priv = dev_get_drvdata(dev); 847 847 struct usbhs_mod *mod = usbhs_mod_get_current(priv); ··· 857 857 return 0; 858 858 } 859 859 860 - static int usbhsc_resume(struct device *dev) 860 + static __maybe_unused int usbhsc_resume(struct device *dev) 861 861 { 862 862 struct usbhs_priv *priv = dev_get_drvdata(dev); 863 863 struct platform_device *pdev = usbhs_priv_to_pdev(priv);