• Arnd Bergmann's avatar
    [media] s5p-cec: mark PM functions as __maybe_unused again · eadf0811
    Arnd Bergmann authored
    A bugfix removed the two callers of s5p_cec_runtime_suspend
    and s5p_cec_runtime_resume, leading to the return of a harmless
    warning that I had previously fixed in commit aee89370
    ("[media] s5p_cec: mark suspend/resume as __maybe_unused"):
    
    staging/media/s5p-cec/s5p_cec.c:234:12: error: ‘s5p_cec_runtime_suspend’ defined but not used [-Werror=unused-function]
    staging/media/s5p-cec/s5p_cec.c:242:12: error: ‘s5p_cec_runtime_resume’ defined but not used [-Werror=unused-function]
    
    This adds the __maybe_unused annotations to the function that
    were not removed and that are now unused when CONFIG_PM
    is disabled.
    
    Fixes: 57b978ad ("[media] s5p-cec: fix system and runtime PM integration")
    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>
    eadf0811
s5p_cec.c 6.41 KB