• Arnd Bergmann's avatar
    pinctrl: msm: mark PM functions as __maybe_unused · d1040ea0
    Arnd Bergmann authored
    Without CONFIG_PM_SLEEP, we get annoying 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 device *dev)
                ^~~~~~~~~~~~~~~~~~
    drivers/pinctrl/qcom/pinctrl-msm.c:1075:12: error: 'msm_pinctrl_suspend' defined but not used [-Werror=unused-function]
     static int msm_pinctrl_suspend(struct device *dev)
    
    Mark them as __maybe_unused to shut up the warning and silently drop
    the functions without having to add ugly #ifdefs.
    
    Fixes: 977d057a ("pinctrl: msm: Add sleep pinctrl state transitions")
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Reviewed-by: default avatarEvan Green <evgreen@chromium.org>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    d1040ea0
pinctrl-msm.c 29.7 KB