Re: [PATCH] usb: musb: mark PM functions as __maybe_unused

From: Tony Lindgren
Date: Wed Nov 23 2016 - 09:21:11 EST


* Arnd Bergmann <arnd@xxxxxxxx> [161122 06:30]:
> Building without CONFIG_PM causes a harmless warning:
>
> drivers/usb/musb/musb_core.c:2041:12: error: âmusb_run_resume_workâ defined but not used [-Werror=unused-function]
>
> Removing the #ifdef around the PM code and instead marking the suspend/resume
> functions as __maybe_unused will do the right thing without warning.

OK works for me:

Acked-by: Tony Lindgren <tony@xxxxxxxxxxx>