]> git.baikalelectronics.ru Git - kernel.git/commit
media: camss: mark PM functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Fri, 17 Aug 2018 09:53:42 +0000 (05:53 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 29 Aug 2018 18:00:26 +0000 (14:00 -0400)
commit26b59f9159e2cb45c4dad962c025fa2cbb316e28
tree78eb0758d643c7938c48e2b6dc7820e7e12392b1
parent7646d5a213416bc4c3f1c2aac514f231d403d735
media: camss: mark PM functions as __maybe_unused

The empty suspend/resume functions cause a build warning
when they are unused:

drivers/media/platform/qcom/camss/camss.c:1001:12: error: 'camss_runtime_resume' defined but not used [-Werror=unused-function]
drivers/media/platform/qcom/camss/camss.c:996:12: error: 'camss_runtime_suspend' defined but not used [-Werror=unused-function]

Mark them as __maybe_unused so the compiler can silently drop them.

Fixes: abd62964b5a5 ("media: camss: Add basic runtime PM support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Todor Tomov <todor.tomov@linaro.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/qcom/camss/camss.c