Re: [PATCH 04/20] usb/host: ehci-platform: Use pm_ptr() macro

2020-09-03 Thread Alan Stern
On Thu, Sep 03, 2020 at 01:25:38PM +0200, Paul Cercueil wrote: > Use the newly introduced pm_ptr() macro, and mark the suspend/resume > functions __maybe_unused. These functions can then be moved outside the > CONFIG_PM_SUSPEND block, and the compiler can then process them and > detect build failur

[PATCH 04/20] usb/host: ehci-platform: Use pm_ptr() macro

2020-09-03 Thread Paul Cercueil
Use the newly introduced pm_ptr() macro, and mark the suspend/resume functions __maybe_unused. These functions can then be moved outside the CONFIG_PM_SUSPEND block, and the compiler can then process them and detect build failures independently of the config. If unused, they will simply be discarde