Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5447677ybi; Wed, 12 Jun 2019 02:40:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyN5i/MvIEb9jh1gno1OdB5RosMeAJOeuERbJYf8/pds9qMkVDeOWiFGrdV/PL4J1EO98YN X-Received: by 2002:a17:90a:ac11:: with SMTP id o17mr32338202pjq.134.1560332410148; Wed, 12 Jun 2019 02:40:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560332410; cv=none; d=google.com; s=arc-20160816; b=gjFsnQYfoikS4+y4QcgVyHiEP92H7AmpnBZ3XH6njxh/9rP3D3QJl+gw2VgPgRJdX8 ThOpR18WhDT2j81kKOcwH/Hs5bt5/7bgsasVSDiSyjYFAfos7NN9N7yfD6YtfH6HB0m1 Rhl8unMRWx9JXNJUfh7vR8jbNDB8oYjUoF/PBbtOMpKqsYGXOb8MxCZ68kloe8GNKkwQ n4hWHWRNskpoa3miPdcz+YXGeksrXrO4NxrmpehiaTE7+WDn/E7A2p5azRSwu1xRlabj fDKhdHCYOuzl2SQmjshQQEZNAw2L3IC+ZevCBnPQegGbrWzzYPUP+1grECQ8Hyf3Ywt/ heYQ== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=04GCIstyKMujcBHa4O6zSpjG2Oz0E3c+JB6XSFE/UrI=; b=hp0pM5pfspgDTBP27c6rXyyHLNYzY9PcqjxoL/gjHwjy8y/4XYhzQ4vbCn9r2Di+xD EFLMVN7Lf3zInzuHMzaibjnTwXHQZadJC0l9/dV6X8KouDX3qc76pASOoMsGYcjzkOAy 8v96guuslRdsDXfOHHbI/qJRxjgX+yIoTgcP/nAJ0asLAaMRrvjiBtu5Fc9qAwbxyVc2 LNtZ5FjBRT0ZmIpsDhUIrPEK9YgK0pm3mcf+A51zWP1XXLsNIYz5EEyftA8CMCBATVl3 d919d2zQzxy0z0gSHmPABvovUd4zV0gEMrWoWmEO3pBccNs+XNemK8zYYC7WDRrW92Eu qiIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=mu4uAjLN; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u67si16121581pfu.154.2019.06.12.02.39.54; Wed, 12 Jun 2019 02:40:10 -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; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=mu4uAjLN; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408830AbfFLJha (ORCPT + 99 others); Wed, 12 Jun 2019 05:37:30 -0400 Received: from casper.infradead.org ([85.118.1.10]:45994 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408577AbfFLJh3 (ORCPT ); Wed, 12 Jun 2019 05:37:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=04GCIstyKMujcBHa4O6zSpjG2Oz0E3c+JB6XSFE/UrI=; b=mu4uAjLNncFHGDGq4L4qZDo9wt NsrMgf2WNt8yYLcUBfBCqqJ5qRlV7K2XZR20CBv9PM4ZzLdjwc7hpvOfnpX23SSj1M/KbK+6Qc1Ay iXXoFcJxtG4o3fwbRzSJHZ6Wa9HCxObTuybjFsjVST3+ISYlEesSjhSU9WoBPW1aTYpDvp+vcrp8k sWdNxkeY6U3J1Ury/o+wiAg8rxcMyjI2vsYwBgSa9ZdWtNZdxF73GtiaIDlXc/GbLbszm3ULwr20P dScbq6e+TQBXi0RqRGvWXSGyENPNez5rN7S+iGF06x3utuGHkRSl0H7eM8P2PIHqk6foytMM9uZXN lsAzhG+w==; Received: from 177.41.119.178.dynamic.adsl.gvt.net.br ([177.41.119.178] helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.92 #3 (Red Hat Linux)) id 1hazgw-0004ue-4U; Wed, 12 Jun 2019 09:37:14 +0000 Date: Wed, 12 Jun 2019 06:37:08 -0300 From: Mauro Carvalho Chehab To: Sean Young Cc: YueHaibing , tglx@linutronix.de, corbet@lwn.net, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Subject: Re: [PATCH] media: ttpci: Fix build error without RC_CORE Message-ID: <20190612063708.64498b44@coco.lan> In-Reply-To: <20190612074254.eky2xo7bajorkhfy@gofer.mess.org> References: <20190612034310.4640-1-yuehaibing@huawei.com> <20190612074254.eky2xo7bajorkhfy@gofer.mess.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Wed, 12 Jun 2019 08:42:55 +0100 Sean Young escreveu: > On Wed, Jun 12, 2019 at 11:43:10AM +0800, YueHaibing wrote: > > If RC_CORE is not set, building fails: > > > > drivers/media/pci/ttpci/av7110_ir.o: In function `av7110_ir_init': > > av7110_ir.c:(.text+0x1b0): undefined reference to `rc_allocate_device' > > av7110_ir.c:(.text+0x2c1): undefined reference to `rc_register_device' > > av7110_ir.c:(.text+0x2dc): undefined reference to `rc_free_device' > > > > Reported-by: Hulk Robot > > Fixes: 71f49a8bf5c5 ("media: ttpci: use rc-core for the IR receiver") > > Signed-off-by: YueHaibing > > Thank you for spotting this and writing a patch. > > > --- > > drivers/media/pci/ttpci/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/media/pci/ttpci/Kconfig b/drivers/media/pci/ttpci/Kconfig > > index d96d4fa..b705631 100644 > > --- a/drivers/media/pci/ttpci/Kconfig > > +++ b/drivers/media/pci/ttpci/Kconfig > > @@ -7,7 +7,7 @@ config DVB_AV7110 > > depends on DVB_CORE && PCI && I2C > > select TTPCI_EEPROM > > select VIDEO_SAA7146_VV > > - select DVB_AV7110_IR if INPUT_EVDEV=y || INPUT_EVDEV=DVB_AV7110 > > This says if > - select DVB_AV7110_IR if INPUT_EVDEV and DVB_AV7110 are both y or m > - select DVB_AV7110_IR if INPUT_EVDEV=y > This exists for the case when INPUT_EVDEV=y and DVB_AV7110=m, which is fine > > > + select DVB_AV7110_IR if RC_CORE=DVB_AV7110 && (INPUT_EVDEV=y || INPUT_EVDEV=DVB_AV7110) > > That's not exactly the same. For one thing it should not longer depend on > INPUT_EVDEV=y. > > Now if DVB_AV7110=m and RC_CORE=y is not allowed which should be (this is > the case in Fedora default kernel config for example). My suggestion here is to stop using select here, using, instead a depends on for DVB_AV7110_IR, e. g. something like (untested): config DVB_AV7110_IR bool depends on RC_CORE && DVB_AV7110 default DVB_AV7110 > > > depends on VIDEO_DEV # dependencies of VIDEO_SAA7146_VV > > select DVB_VES1820 if MEDIA_SUBDRV_AUTOSELECT > > select DVB_VES1X93 if MEDIA_SUBDRV_AUTOSELECT > > -- > > 2.7.4 > > > > Thanks, > > Sean Thanks, Mauro