]> git.baikalelectronics.ru Git - kernel.git/commit
media: venus: fix compile-test build on non-qcom ARM platform
authorArnd Bergmann <arnd@arndb.de>
Mon, 17 Jul 2017 08:56:49 +0000 (04:56 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 26 Jul 2017 10:14:31 +0000 (06:14 -0400)
commit507c6eb64338e10ee78ec537e1f59f0eae278873
treee163ef6a4b98774a9597fbb3df71c543095a91bc
parent98bdaef58014997bb697d860a1dce0bce5896cd3
media: venus: fix compile-test build on non-qcom ARM platform

If QCOM_MDT_LOADER is enabled, but ARCH_QCOM is not, we run into
a build error:

ERROR: "qcom_mdt_load" [drivers/media/platform/qcom/venus/venus-core.ko] undefined!
ERROR: "qcom_mdt_get_size" [drivers/media/platform/qcom/venus/venus-core.ko] undefined!

This changes the 'select' statement again, so we only try to enable
those symbols when the drivers will actually get built, and explicitly
test for QCOM_MDT_LOADER to be enabled before calling into it.

Fixes: 421c7f632a31 ("[media] media: venus: enable building with COMPILE_TEST")
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/Kconfig
drivers/media/platform/qcom/venus/firmware.c