From patchwork Wed May 30 22:07:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 137308 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp5850714lji; Wed, 30 May 2018 15:08:07 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKdu4Ud2cgwBzW38ZysFqW8sHQn/aS0a6kG1VvfAYlg2VkCGTQrhOMDQ/fb/LqENekXE/GX X-Received: by 2002:a62:5fc5:: with SMTP id t188-v6mr4360660pfb.214.1527718087664; Wed, 30 May 2018 15:08:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527718087; cv=none; d=google.com; s=arc-20160816; b=ZGW8u4IbL0ye138/WF7SA4knwZ2sOaKMIUbHtgZh+gULYKx6VSL7QeIp2Nlvnf5LvH x0LxRRKRZd9Q4rpEHkcxMr7CwvIZAcUvja3pHYQ9NvMlvwSiJcR8j0reNRbJkSItRdWz yAhAnZxcSRBTRYC3vWf3rJicz5Qc2NqsqwFqnTgKsxvuovIaRUaD0AIfsNLyF9SS/cFd x2tn+rxUSFeAB2g9XD1LdwsA2HuEfZ//3bUKfIfwANYIGVdWVKCfU4CA3BOI4adVzczb BCI/UQ2VCKx5S2uodbf61Vmpvb9Ey+jTjFkrWJv2ZI39T9YTt17qz7/YajlGtsQyssn+ QaMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=xzYxu+kuK3hE+WJhm8ZjMj50P88Wz6PCR1T6IUYzfxA=; b=NaLuJbkPjvZTiseLs11Ygyy7rUsr1m1QEr58raDWrytBK9BOnlATsvtw+XqlAlvABK x1PATkanRCHGJSFVIVIyZxpKCrv4UvU3ZA02PI29jVN+damKFCvMpZS2RYNtFs0nUZMs O6QWDLWlvmenINYVUmmV6mMBSEPt/TABUyEd6yV2tpsB5LVT7pfUNmIaU8baJq7QYOdI MQzWCRiMJTzwf2Vov3Lrmz4FFtleMZs/nCz9W7JGDoLUI7vofp2DCnbn4Qlzl/aT0++/ l/VxLSipmlO/njqBltZIJSx6yS+fGS5S2vNkcglhrw2eV4GhVnKOgGHfIRHFF/BCmJ7D ClWw== 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 h8-v6si35975475pfi.115.2018.05.30.15.08.07; Wed, 30 May 2018 15:08:07 -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 S932605AbeE3WIG (ORCPT + 30 others); Wed, 30 May 2018 18:08:06 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:43017 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932431AbeE3WIA (ORCPT ); Wed, 30 May 2018 18:08:00 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0MgfcV-1fiJdl2BDL-00NyyE; Thu, 31 May 2018 00:07:38 +0200 From: Arnd Bergmann To: Mauro Carvalho Chehab Cc: Arnd Bergmann , Maxime Ripard , Sakari Ailus , Benoit Parrot , =?utf-8?q?Niklas_S=C3=B6derlun?= =?utf-8?q?d?= , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] media: v4l: cadence: add VIDEO_V4L2 dependency Date: Thu, 31 May 2018 00:07:10 +0200 Message-Id: <20180530220735.1651221-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:/8xdBscKlf2sf05at1uW9tsRcLE3pMaRcP5bF3HeO5jRStGAa9V kYzW8deZ5T5ElEhACm+WPXKyM6oDBC6zdc1+WLchdO4beLDAGs75wUOGbLHlNoxRijr0zHm ztVjMPBsSpiZLDu5UK8cp6yBYAKo66iokjbt3X/H+4M1OyJ5zbteTMz4mxgd8FYkkOiAEID +EiCQDY84CR53GEUa95/Q== X-UI-Out-Filterresults: notjunk:1; V01:K0:7oC3GyGlxnU=:lgNMblleJOfk39n/Csggen aHaU0gBN2ty/FnC7ZQ42UtgSUsbFRL/+j7kZMEJvH4aIBSRuMNwewihjKPWyK4tzF8UnieQhY E3irPHRLr22SxwBTJubiYthrOi3nqIOjuF0I1rW+dmwM4nzqatHBbqZBmY1z1Ye7DxQddMK16 l94jkQAAisyVMFXe1sESO4lFgU7UYtH089iwz1rwlswXhAOIxtXa+bWiQ20qX5m9HMXYZzaFH Bad08QIZ7Bhe08CiAiZCN4wXtNuAuFi1RPwKLwIjzhUZma6+1ATp15beHIkL0AQgOePXsXYxS pLXFbEeivkz+32NfBnLXMo7VPuBGNVKZs1qF28n24RA0F3ezWvBtydT7pJSfctVTtj4NwsqvG xyYuG8Y4eCr8XpqbYZCrcGwwdkUJVJqx7IRIuTjOCgu4KE3SHtNo7ZZ1Ag8Nja4OB29lrUK1E pnG6hyugjv44pRcswt1Rwu3+AWRZbbgxknNSlNdQVcisbjCXdrFPRpfSlkErEy96/oQYGOu1H xpCmfHBR2OglQV6lClLV44mLQgkTB+YePW2JlV8tkm0QZ6JprYR3bUAiZrSl6JFhcSnn4jZpT 6BM5WYkDb02Y+777zj4AGcpu3+2LFgZbylJQx6K/a2zQ31EUJ/gBxM0+aIFgNy2BZkABopAEB qRlMnjPzXO+8SygxVH9gQ9SepgjHn94vMkiHsaXinX1lOQbSpA7awwoZoC19P447kZpU= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The cadence media drivers can be built-in while the v4l2 core is a loadable module. This is a mistake and leads to link errors: drivers/media/v4l2-core/v4l2-fwnode.o: In function `v4l2_async_register_subdev_sensor_common': v4l2-fwnode.c:(.text+0x12f0): undefined reference to `v4l2_async_subdev_notifier_register' v4l2-fwnode.c:(.text+0x1304): undefined reference to `v4l2_async_register_subdev' v4l2-fwnode.c:(.text+0x1318): undefined reference to `v4l2_async_notifier_unregister' v4l2-fwnode.c:(.text+0x1338): undefined reference to `v4l2_async_notifier_cleanup' cdns-csi2rx.c:(.text+0x9f8): undefined reference to `v4l2_subdev_init' cdns-csi2rx.c:(.text+0xa78): undefined reference to `v4l2_async_register_subdev' drivers/media/platform/cadence/cdns-csi2tx.o: In function `csi2tx_remove': cdns-csi2tx.c:(.text+0x88): undefined reference to `v4l2_async_unregister_subdev' drivers/media/platform/cadence/cdns-csi2tx.o: In function `csi2tx_probe': cdns-csi2tx.c:(.text+0x884): undefined reference to `v4l2_subdev_init' cdns-csi2tx.c:(.text+0xa9c): undefined reference to `v4l2_async_register_subdev' An explicit Kconfig dependency on VIDEO_V4L2 avoids the problem. Fixes: 1fc3b37f34f6 ("media: v4l: cadence: Add Cadence MIPI-CSI2 RX driver") Signed-off-by: Arnd Bergmann --- drivers/media/platform/cadence/Kconfig | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 diff --git a/drivers/media/platform/cadence/Kconfig b/drivers/media/platform/cadence/Kconfig index 3bf0f2454384..cf6124da3c54 100644 --- a/drivers/media/platform/cadence/Kconfig +++ b/drivers/media/platform/cadence/Kconfig @@ -11,6 +11,7 @@ if VIDEO_CADENCE config VIDEO_CADENCE_CSI2RX tristate "Cadence MIPI-CSI2 RX Controller" + depends on VIDEO_V4L2 depends on MEDIA_CONTROLLER depends on VIDEO_V4L2_SUBDEV_API select V4L2_FWNODE @@ -22,6 +23,7 @@ config VIDEO_CADENCE_CSI2RX config VIDEO_CADENCE_CSI2TX tristate "Cadence MIPI-CSI2 TX Controller" + depends on VIDEO_V4L2 depends on MEDIA_CONTROLLER depends on VIDEO_V4L2_SUBDEV_API select V4L2_FWNODE