• Arnd Bergmann's avatar
    [media] s5p_cec: mark suspend/resume as __maybe_unused · aee89370
    Arnd Bergmann authored
    The suspend/resume functions in the s5p-cec driver are only
    referenced when CONFIG_PM is enabled, so we get a warning
    about unused functions otherwise:
    
    drivers/staging/media/s5p-cec/s5p_cec.c:260:12: error: 's5p_cec_resume' defined but not used [-Werror=unused-function]
     static int s5p_cec_resume(struct device *dev)
                ^~~~~~~~~~~~~~
    drivers/staging/media/s5p-cec/s5p_cec.c:253:12: error: 's5p_cec_suspend' defined but not used [-Werror=unused-function]
     static int s5p_cec_suspend(struct device *dev)
    
    This marks them as __maybe_unused to avoid the warning without
    having to introduce an extra #ifdef.
    Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
    Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
    Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
    aee89370
s5p_cec.c 6.64 KB