Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2637917pxa; Mon, 17 Aug 2020 15:08:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMjauuRtYR58KA2U1v6vc9zMR516CP7LcL6rx45twySuuR6Qh2saJq7Mi1yB7o3ywa/TSj X-Received: by 2002:a17:906:74d5:: with SMTP id z21mr18047960ejl.290.1597702096823; Mon, 17 Aug 2020 15:08:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597702096; cv=none; d=google.com; s=arc-20160816; b=FdrKA24vTKu9HnHeIJ3dqxAKVhRRVG71BWcSrgxR0UklXSr/jEl3DgAo/1bYiHK1A5 M+HLa5Xt3cCmhRh3+VAl/gbo+HgntU/vrRlF40iRn3c3dg/elgL28k6TbkY0KUUrm6MZ rZbcF8BfXZUHfjU8VkZFDQYOaYmYtU0KDrd/qdbUFpvmB65iUqHu+EqVYxUboLFT3wVS YpAEAVOQUin+squseIrpBY8QeLSL0qYwj+U8xG5iMRnYmxIq15h5ChYMG3FNyg5mZP5l CUJgNuZ11ImYDhLgypDwyOOa2WEWE7+S0g4FXdwUEptVu7jhWMafaC9fgsCfQsf55bfO GQDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wiCTK/pPHYxOLbrPIKaCqHJ2c33JMoaRuXDgV36Gnng=; b=Q1O9gdxb19f4MNSvlh7OLngGDUqFgv5kTR+DPx7+/GGVirpUg1lYMSsFRtDDPSLZnM OpKjG2437+8EzMEF/2DQ3PNcybZWJcRpoVLUq+DdZd9mdBMg8gdPFXhJXtJeXSbIT/2z awLOhTyQsXv1rB8V5NtIDG9mZtGqPJLU9V9fRK1jrd08KlgnhMlC4GhrIHkm/hkqMlcT 1Z8y9viJ07DUddlbmqq4rxHBqxdZY19rp3yG5q0Yx+pFUkTU+wPOv21AuokM/J0MQFDH IxvDqIeLjuHZbmIOSxjcQhOver4B730KONpCl9lPPIprJMXik0AD2SJPC4AhGbO3mwCF Nsvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HEQ6p4f1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 25si14532718ejl.76.2020.08.17.15.07.53; Mon, 17 Aug 2020 15:08:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HEQ6p4f1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388789AbgHQQO2 (ORCPT + 99 others); Mon, 17 Aug 2020 12:14:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:59876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730308AbgHQPrt (ORCPT ); Mon, 17 Aug 2020 11:47:49 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8FA552177B; Mon, 17 Aug 2020 15:47:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597679269; bh=7CMovI0zAwuBI0lGbchrtjjutgyxnMT1+5oXz6Mpy1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HEQ6p4f18uQTBEua3XI7GHWYJGJk3FCCD20UAzw9zu0g+GWn5R8rcZDruET7oP9oJ cOQDsACyoZoyj0MANyiwiKXwV40eGrzx/ZeM+qwXxvIxBquHLJJQhR+ZiDhPiI154V kCypU1eZzgJ+/+PZ9t0ShkwttuVfa0BQ/6R0n4eE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Sean Young , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.7 152/393] media: cxusb-analog: fix V4L2 dependency Date: Mon, 17 Aug 2020 17:13:22 +0200 Message-Id: <20200817143826.989351277@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143819.579311991@linuxfoundation.org> References: <20200817143819.579311991@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit 1a55caf010c46d4f2073f9e92e97ef65358c16bf ] CONFIG_DVB_USB_CXUSB_ANALOG is a 'bool' symbol with a dependency on the tristate CONFIG_VIDEO_V4L2, which means it can be enabled as =y even when its dependency is =m. This leads to a link failure: drivers/media/usb/dvb-usb/cxusb-analog.o: In function `cxusb_medion_analog_init': cxusb-analog.c:(.text+0x92): undefined reference to `v4l2_subdev_call_wrappers' drivers/media/usb/dvb-usb/cxusb-analog.o: In function `cxusb_medion_register_analog': cxusb-analog.c:(.text+0x466): undefined reference to `v4l2_device_register' cxusb-analog.c:(.text+0x4c3): undefined reference to `v4l2_i2c_new_subdev' cxusb-analog.c:(.text+0x4fb): undefined reference to `v4l2_subdev_call_wrappers' ... Change the dependency only disallow the analog portion of the driver in that configuration. Fixes: e478d4054054 ("media: cxusb: add analog mode support for Medion MD95700") Signed-off-by: Arnd Bergmann Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/usb/dvb-usb/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/usb/dvb-usb/Kconfig b/drivers/media/usb/dvb-usb/Kconfig index 1a3e5f965ae40..2d7a5c1c84af6 100644 --- a/drivers/media/usb/dvb-usb/Kconfig +++ b/drivers/media/usb/dvb-usb/Kconfig @@ -150,6 +150,7 @@ config DVB_USB_CXUSB config DVB_USB_CXUSB_ANALOG bool "Analog support for the Conexant USB2.0 hybrid reference design" depends on DVB_USB_CXUSB && VIDEO_V4L2 + depends on VIDEO_V4L2=y || VIDEO_V4L2=DVB_USB_CXUSB select VIDEO_CX25840 select VIDEOBUF2_VMALLOC help -- 2.25.1