From patchwork Tue Jun 27 15:02:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9812293 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3EF0960351 for ; Tue, 27 Jun 2017 15:05:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3123E28589 for ; Tue, 27 Jun 2017 15:05:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 253E4286AA; Tue, 27 Jun 2017 15:05:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DEEA028589 for ; Tue, 27 Jun 2017 15:05:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752786AbdF0PFS (ORCPT ); Tue, 27 Jun 2017 11:05:18 -0400 Received: from mout.kundenserver.de ([212.227.126.135]:60142 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752871AbdF0PE0 (ORCPT ); Tue, 27 Jun 2017 11:04:26 -0400 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue003 [212.227.15.129]) with ESMTPA (Nemesis) id 0LhRPo-1e3YMV0WoK-00mZRe; Tue, 27 Jun 2017 17:04:19 +0200 From: Arnd Bergmann To: Mauro Carvalho Chehab Cc: Arnd Bergmann , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] [media] venus: fix compile-test build on non-qcom ARM platform Date: Tue, 27 Jun 2017 17:02:48 +0200 Message-Id: <20170627150310.719212-3-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170627150310.719212-1-arnd@arndb.de> References: <20170627150310.719212-1-arnd@arndb.de> X-Provags-ID: V03:K0:V+C4IGl64tDf1pFH8zmsxB2dJ9u6kRR6HsPnoECwys3SljxU+Y5 cScFAb4N2RvwJhuy+w4Kjbss5O57EHZfWgJM4qu2Dr1NozTUKuGyLrdFQTTMLmmu3lH2cxL U79OcY0xF1q1+ngOMVjiUWXIyHBR7RKMspcpaEmcZeeYzV1wFsnTQcmAVYkC1JcfxBcqoNa A7KJKVbFzxZ+RHGa7Bovw== X-UI-Out-Filterresults: notjunk:1; V01:K0:bMTv7Cb9KUo=:CvXKXFrPIWvL/Va+QU9UZT ANBJA8wzoPSrBrqJ+QrNdsTw1w9WaXdkFS0m/3ExAEj/IybuKfp1THbgg5Nw7ozxq5z9zhQVZ rxIRVYIv4zBWI50yVsFFjobGOzXyaxLUon4txpcC2rthBvjEBaOoE27YTuQgQgtEFRuwcNQVN UU+iINOsJ+5dNpyfBMdlR77UBooqU3CS4jORa+o8zSg5S1jWyfFOmpMRlu+ydNGCYWZPgS54B EJ7kVuiKD0PlCELNkhd1dZNQkmgIGKDWrjpy5XMuIS609ilulaNYMXanijCyVV+9Mu5weCUKH PRp5Z8aq+PWq1ImZ16dbUbsVw07DDw9VtxZpgdXuuaCl69cwbQYXEld8ULVlbfw9kpRZyqCT9 y3m13IerHJ2Pao9t6DSBeBMuit/aOR9SwBWZ02wW8hjc0rVxnTaQwlgL8QVmTubhBgr23n0kr BHNV6QmL4j3CQ2B07ABpUWEBg1Z+la/AEjoGT3lPWeRwhZ7isSnzZsBHFN7HDbl+xWqciUlgH ymA0u7PNGRAtlXLql2wIRPwnLmFHU7bKfaHBkchcxm5N9i23xMpgW7RKOXIpJ0Om32+OcF5SB Q97Mnp/py/ZTdD5AGON3KbCU8ClGTgLbhvjySrTkv1NVOcm3B63MdFiWRIZwPTom0/9Xj1pOG 3bdeVBzLEcoz65nHAd5/dYcIrqK73euMKS0ux1x1diPUOg1z9E2vOonbq9ik+706v1/w= Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Fixes: 76724b30f222 ("[media] media: venus: enable building with COMPILE_TEST") Signed-off-by: Arnd Bergmann Reviewed-by: Stanimir Varbanov --- drivers/media/platform/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig index cb2f31cd0088..635c53e61f8a 100644 --- a/drivers/media/platform/Kconfig +++ b/drivers/media/platform/Kconfig @@ -475,8 +475,8 @@ config VIDEO_QCOM_VENUS tristate "Qualcomm Venus V4L2 encoder/decoder driver" depends on VIDEO_DEV && VIDEO_V4L2 && HAS_DMA depends on (ARCH_QCOM && IOMMU_DMA) || COMPILE_TEST - select QCOM_MDT_LOADER if (ARM || ARM64) - select QCOM_SCM if (ARM || ARM64) + select QCOM_MDT_LOADER if ARCH_QCOM + select QCOM_SCM if ARCH_QCOM select VIDEOBUF2_DMA_SG select V4L2_MEM2MEM_DEV ---help---