• 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: Linus Walleij's avatarLinus Walleij <linus.walleij@linaro.org>
    d1040ea0
Name
Last commit
Last update
..
actions Loading commit data...
aspeed Loading commit data...
bcm Loading commit data...
berlin Loading commit data...
cirrus Loading commit data...
freescale Loading commit data...
intel Loading commit data...
mediatek Loading commit data...
meson Loading commit data...
mvebu Loading commit data...
nomadik Loading commit data...
nuvoton Loading commit data...
pxa Loading commit data...
qcom Loading commit data...
samsung Loading commit data...
sh-pfc Loading commit data...
sirf Loading commit data...
spear Loading commit data...
sprd Loading commit data...
stm32 Loading commit data...
sunxi Loading commit data...
tegra Loading commit data...
ti Loading commit data...
uniphier Loading commit data...
vt8500 Loading commit data...
zte Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
core.c Loading commit data...
core.h Loading commit data...
devicetree.c Loading commit data...
devicetree.h Loading commit data...
pinconf-generic.c Loading commit data...
pinconf.c Loading commit data...
pinconf.h Loading commit data...
pinctrl-amd.c Loading commit data...
pinctrl-amd.h Loading commit data...
pinctrl-artpec6.c Loading commit data...
pinctrl-as3722.c Loading commit data...
pinctrl-at91-pio4.c Loading commit data...
pinctrl-at91.c Loading commit data...
pinctrl-at91.h Loading commit data...
pinctrl-axp209.c Loading commit data...
pinctrl-coh901.c Loading commit data...
pinctrl-coh901.h Loading commit data...
pinctrl-da850-pupd.c Loading commit data...
pinctrl-digicolor.c Loading commit data...
pinctrl-falcon.c Loading commit data...
pinctrl-gemini.c Loading commit data...
pinctrl-ingenic.c Loading commit data...
pinctrl-lantiq.c Loading commit data...
pinctrl-lantiq.h Loading commit data...
pinctrl-lpc18xx.c Loading commit data...
pinctrl-max77620.c Loading commit data...
pinctrl-mcp23s08.c Loading commit data...
pinctrl-ocelot.c Loading commit data...
pinctrl-oxnas.c Loading commit data...
pinctrl-palmas.c Loading commit data...
pinctrl-pic32.c Loading commit data...
pinctrl-pic32.h Loading commit data...
pinctrl-pistachio.c Loading commit data...
pinctrl-rk805.c Loading commit data...
pinctrl-rockchip.c Loading commit data...
pinctrl-rza1.c Loading commit data...
pinctrl-rza2.c Loading commit data...
pinctrl-rzn1.c Loading commit data...
pinctrl-single.c Loading commit data...
pinctrl-st.c Loading commit data...
pinctrl-sx150x.c Loading commit data...
pinctrl-tb10x.c Loading commit data...
pinctrl-u300.c Loading commit data...
pinctrl-utils.c Loading commit data...
pinctrl-utils.h Loading commit data...
pinctrl-xway.c Loading commit data...
pinctrl-zynq.c Loading commit data...
pinmux.c Loading commit data...
pinmux.h Loading commit data...