]> git.baikalelectronics.ru Git - kernel.git/commit
media: venus: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Mon, 17 Jul 2017 08:56:47 +0000 (04:56 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 26 Jul 2017 10:14:31 +0000 (06:14 -0400)
commit98bdaef58014997bb697d860a1dce0bce5896cd3
tree6faa48fdae8e45af3dda0b84b2e00c56c606d534
parent31b935cca2f56900284e4b5328d0c12a6b79cca3
media: venus: mark PM functions as __maybe_unused

Without PM support, gcc warns about two unused functions:

platform/qcom/venus/core.c:146:13: error: 'venus_clks_disable' defined but not used [-Werror=unused-function]
platform/qcom/venus/core.c:126:12: error: 'venus_clks_enable' defined but not used [-Werror=unused-function]

The problem as usual are incorrect #ifdefs, so the easiest fix
is to do away with the #ifdef completely and mark the suspend/resume
handlers as __maybe_unused, which they are.

Fixes: a05963ccb1ce ("[media] media: venus: adding core part and helper functions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/qcom/venus/core.c