Re: [PATCH] pinctrl: msm: mark PM functions as __maybe_unused

2018-12-21 Thread Linus Walleij
On Mon, Dec 10, 2018 at 9:59 PM Arnd Bergmann wrote: > Without CONFIG_PM_SLEEP, we get annoyting warnings about unused functions: > > drivers/pinctrl/qcom/pinctrl-msm.c:1082:12: error: 'msm_pinctrl_resume' > defined but not used [-Werror=unused-function] > static int msm_pinctrl_resume(struct d

Re: [PATCH] pinctrl: msm: mark PM functions as __maybe_unused

2018-12-10 Thread Evan Green
On Mon, Dec 10, 2018 at 1:00 PM Arnd Bergmann wrote: > > Without CONFIG_PM_SLEEP, we get annoyting warnings about unused functions: > > drivers/pinctrl/qcom/pinctrl-msm.c:1082:12: error: 'msm_pinctrl_resume' > defined but not used [-Werror=unused-function] > static int msm_pinctrl_resume(struct