Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5946494ybi; Wed, 12 Jun 2019 11:10:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxm0C9JQuc2fwPQ7NU79obFahqLrC0JTcYN+WiCLk9tJQCGHGvFBKEnxkRSidTW1WLjpF1K X-Received: by 2002:a17:902:2883:: with SMTP id f3mr83043164plb.111.1560363007187; Wed, 12 Jun 2019 11:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560363007; cv=none; d=google.com; s=arc-20160816; b=cNEtXQGX8PV/6D3MijmxNtB3DmNQDqgPoTwfutkK9yWJQyW9JokYhtuIQbAfJWKqEO l+WnWiWxyZqB77fNZa/1pvJ2kEczbpe8mtJI6s0GJHx0UCE/kW6avMzJR0tJIktphF93 uRrROuzyt7bDW3ofY0/ofriEERwKxpb60rYOXoQo40oU+WokfdwnEwdzXfbZHhzoOifr Kx58co8c/oDZTJiWwZ42RSOS9bieYwh2ZpcbN/MLRGSkyr1zkIvsimKHlFCBJ9VQJCJd zQUIZg/3EjkXiKd+9UPRAEO0LDmDHMUbacH2tEsdTsO6vkR6mTtIn1GNnFHtz9rbw0Qj anfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Uq0jsxfdXjN7QgqgCPeBeb8bLCR1LIj67O257h6Qlww=; b=VEIEWw89dfuAsLnNlTurVT8Dsz+OR07f+zCKYah+fA5WkOFJjDDgSiuwnCK7cfq2h2 VlhZRJuvdUMyurU/O7alxZcqL3FlD57wz5GDSGkulkOihYc4K4sXr+wbkOeg+32nvADH ZrsVMVnH1leW8+6KCeV4birWntCC8RNMoeTo32Lp24NvOuB2gjYMfT4/c/jJqC6C3Pcn hTvV73A64rWzHStz4M9HYd01F14FQgef8x5kYnJkvAjlycc1t8T0deEPallZXwkrR1tO IHpVmJW2pyHbmltP0JJmrYxMcnvgavJcatWYIV3hEQTfhQUq1A3hD9RBrJhCG3kQnksI TARA== 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 a5si401379pgt.281.2019.06.12.11.09.52; Wed, 12 Jun 2019 11:10: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 S2404202AbfFLR4e (ORCPT + 99 others); Wed, 12 Jun 2019 13:56:34 -0400 Received: from gofer.mess.org ([88.97.38.141]:42583 "EHLO gofer.mess.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404183AbfFLR4c (ORCPT ); Wed, 12 Jun 2019 13:56:32 -0400 Received: by gofer.mess.org (Postfix, from userid 1000) id BF6A860226; Wed, 12 Jun 2019 18:56:29 +0100 (BST) Date: Wed, 12 Jun 2019 18:56:29 +0100 From: Sean Young To: Mauro Carvalho Chehab 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: <20190612175629.srfw7ybr256se5rt@gofer.mess.org> References: <20190612034310.4640-1-yuehaibing@huawei.com> <20190612074254.eky2xo7bajorkhfy@gofer.mess.org> <20190612063708.64498b44@coco.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190612063708.64498b44@coco.lan> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 12, 2019 at 06:37:08AM -0300, Mauro Carvalho Chehab wrote: > 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 Build will fail if RC_CORE=m && DVB_AV7110=y. So it should be depends on RC_CORE=y || RC_CORE = DVB_AV7110 Thanks, Sean