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: 106441 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp2503824obb; Tue, 27 Jun 2017 08:05:45 -0700 (PDT) X-Received: by 10.84.224.141 with SMTP id s13mr6305366plj.217.1498575945419; Tue, 27 Jun 2017 08:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498575945; cv=none; d=google.com; s=arc-20160816; b=v90SQt5SwLzLmQ+/FvZ7j+sHrK6q8+e+J6GPERazPTd5XHiz2tiZsxfH41qJBpwj9b a/LBKdQG0WNruGV59amJ9y01jT2N5+Gqpo+TVZB/Nz2ZyhOETSahfkTlsxALw4Ib2Ftt g0rNKX4jrBS5dwdp2OYCUAxw69kCKkV+SvXB4yxUdgJG8qKOub2Xb9HLHY/bBwtvJeKm 8Bb0O3J+djMyF7kiEDmd3ASCRq7zB9ofDhiLa9/K7kPvvi1Qh1hz4djF4UtT1xZyQYp+ cCUr55MlQGRlKxj8Zn8bw17v5VB9U2swcRahb0F4XkVG4OKggkVufXdkQEJqteImbZXS QZSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=t5z1X/G3Yc4/HkHAYfblWCRWw0DopkoVx3LGPiDCa0Q=; b=QwcrbZxq62LBFLPVyEwcPu4yFEsRICE1rA+ttRkABRhuSClc4p4ulP0BBU+z80qUtV OGvrdwBQnD9hKILU8MmvXHlLFhc+6I+mzXDIsd6S6z+ZIdiugQzH83Ov1q5elsEo80HT kv0Ji3LCSU3MYZ/2BQgrQMwzrS+Cdxl0V0h5oEqsYhPqlBdZu/Ymk3wRwcN3BTJkyofB cjPy4e1G+z4+YMXBvY/iL1vKAqxEX7rL6M32BGZGR7dU1UEkWKQiU8faE6/jezBgRSC+ 2bbGjqa8oaulVPUTK39GpXh5h2v7qCRCA4Sna7C8FA7jdRDf0VpjNUL3pEXMvEPmM29n gThA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h188si2071581pgc.65.2017.06.27.08.05.45; Tue, 27 Jun 2017 08:05:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753105AbdF0PFd (ORCPT + 25 others); Tue, 27 Jun 2017 11:05:33 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/media/platform/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 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---