• Arnd Bergmann's avatar
    Input: snvs_pwrkey - use __maybe_unused to hide pm functions · 2d1a7923
    Arnd Bergmann authored
    The SNVS power key driver has suspend/resume functions that
    are accessed using SIMPLE_DEV_PM_OPS, which hide the reference
    when CONFIG_PM_SLEEP is not set, resulting in a warning about
    unused functions:
    
    drivers/input/keyboard/snvs_pwrkey.c:183:12: error: 'imx_snvs_pwrkey_suspend' defined but not used [-Werror=unused-function]
    drivers/input/keyboard/snvs_pwrkey.c:194:12: error: 'imx_snvs_pwrkey_resume' defined but not used [-Werror=unused-function]
    
    This adds __maybe_unused annotations to let the compiler know
    it can silently drop the function definition.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Acked-by: default avatarFrank Li <Frank.Li@nxp.com>
    Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
    2d1a7923
snvs_pwrkey.c 5.76 KB