From patchwork Fri Feb 26 11:52:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102673 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp669884lbc; Fri, 26 Feb 2016 03:52:34 -0800 (PST) X-Received: by 10.98.0.194 with SMTP id 185mr1412548pfa.139.1456487554646; Fri, 26 Feb 2016 03:52:34 -0800 (PST) Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id f88si19534035pfj.136.2016.02.26.03.52.34; Fri, 26 Feb 2016 03:52:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DDE646EAB1; Fri, 26 Feb 2016 11:52:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.187]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9833C6EAB0 for ; Fri, 26 Feb 2016 11:52:32 +0000 (UTC) Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue001) with ESMTPA (Nemesis) id 0LkXZc-1a1JAe1JDQ-00aS62; Fri, 26 Feb 2016 12:52:28 +0100 From: Arnd Bergmann To: Laurent Pinchart , David Airlie Subject: [PATCH] drm: rcar-du: clarify vsp dependency Date: Fri, 26 Feb 2016 12:52:20 +0100 Message-Id: <1456487546-3886345-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:gqSDW/W9lmhnaPs72NJjUuxWXppHD70jNwDx74+mnCwR+RvRq7d auLstk2sY2NmGHBABNNRJp0+MQ9kfHASxGxPOCO2gv1Iet32zAfWDXIUxiX5NNQiL/OlPu9 taE4+3tyZSalIxYIw36dM5BE5yObrFcioRjzSMOs4XILtRYqrBjOZl+3m4x8/ElwHhT1Wng EVpMPe3BU6kxEpvNeu6dA== X-UI-Out-Filterresults: notjunk:1; V01:K0:3VhQr7P5ltM=:TBecPksaU2dFbGogmH8XBI SzY3oTFwt3JGnbiRxz6GJuYhEnmszpGuot9igvDIOZr6tuOO9CIosQQi3myqk4tL3SKliZQSw GSV8dWc5aF2m9RWsYP2eBAjkPeOCR8jc8pvT3xF7h/gMt/y7vPOWd1pPOihsr4pVm5QQGwsmd nN//Q+sAHv6DpM5M5VjN01Z1hWNvR71llz0ijEtoN2JBjuNgL2Khh7cEKadb9V2/8kU4MFhQY 8pFBsN9VpNwF6ZTgM50EEVNRFRfzsUPjCD7RXEnyNUnanLNkMWkkYIkiiscNu/atHWPCaNisW dSflAcWI+Y6QaUCPh7jVD8MU9jhF9EEz7Q1E9xnlUegwwttK0F9d8X5uxq9GlwHmHeJ4jd69j +5BQwQrCL7SaSeLG5JFe35MGQmfWthIx/qE9ZkOKgmhNRnaLC2saxDJGiZ2ejWGjLPLwIPEhm 2YEtzKsTHfEwKAGJ9Jn9quNy/QFLr7dxq9Sa2kgn2TrSvbXH2oqlKqQQsn6DbgWo9pZdHv99l sYynAdRvhO3diSgiKmMkPHmFbyAFQmWnr6e6DmnLODbyK0XgeLwaUPnKWdJugy9VC0DBVimD6 lX5ySCnpndi3Lclzva74v9RYGpNdFocE6U/VuoDDOaVYrt/pPSdPhu6gvkP7nUygiKsciVr2v jbnpFWLj4w79lJsDFspLqSAm7EBpx2v5MjXDH2ig2vG9Pf7eiftCcLPd629HbmVXe+ts= Cc: linux-renesas-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The VSP1 compositor code in DRM links against the respective V4L driver, but the dependency is not expressed correctly in Kconfig, which leads to a build error when the DRM driver is built-in and the V4L driver is a module: drivers/gpu/built-in.o: In function `rcar_du_vsp_plane_atomic_update': rcar-du/rcar_du_vsp.c:183: undefined reference to `vsp1_du_atomic_update' This patch avoids the problem by ensuring that the DRM VSP code can only be enabled if the V4L driver is linked into the kernel, or both are loadable modules. Signed-off-by: Arnd Bergmann Fixes: 6d62ef3ac30b ("drm: rcar-du: Expose the VSP1 compositor through KMS planes") --- drivers/gpu/drm/rcar-du/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rcar-du/Kconfig b/drivers/gpu/drm/rcar-du/Kconfig index 1f10fa0928b4..eb1e6d5cfed9 100644 --- a/drivers/gpu/drm/rcar-du/Kconfig +++ b/drivers/gpu/drm/rcar-du/Kconfig @@ -27,6 +27,6 @@ config DRM_RCAR_LVDS config DRM_RCAR_VSP bool "R-Car DU VSP Compositor Support" depends on DRM_RCAR_DU - depends on VIDEO_RENESAS_VSP1 + depends on VIDEO_RENESAS_VSP1=y || (VIDEO_RENESAS_VSP1 && DRM_RCAR_DU=m) help Enable support to expose the R-Car VSP Compositor as KMS planes.