Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5393913ybi; Wed, 12 Jun 2019 01:37:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQpRY+5V+6o5UXDDNwP+Kv0xxLk3WkwyPLt8rg/akSEec1kbYp++DtcC1g2km1k8bDEWmj X-Received: by 2002:a62:63c6:: with SMTP id x189mr73672367pfb.31.1560328658297; Wed, 12 Jun 2019 01:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560328658; cv=none; d=google.com; s=arc-20160816; b=JEzvH/ZF06yRBUW/bsIq5rLjWbyUTie+gepIo4plxG+wgYsdVga3kSr0fZBRaMPOk7 +YjNO1LQWls5+EVMi9+wGMoKOTZjwhYJEpQHzJF8ewar4zqwK7NXtzZsT8LkTarXVcM+ AxX98V+mraftNao+uuDuOpYEQ7KE67HkdHjyRgtrbH+aT/6/rVa85fDMlosmVE6JC0lm HaN4xi/SlzOshLhM22J8pxomlyfJ8Cp8MyyRrboKPCe0CoQ6wbFu/ceuu+sBqy7teeIx PKA7gDfpLkKkkh9hq4PItuoB9DldsdZ/aUFv3LpmYJMfQpLH0LOUBS7vGFtg0bY9Xo0V acBQ== 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=z04DRmlcqSEuLzNKdD7TmOth/WRBbXOWJt6JvAt2j68=; b=edhy8w0roTtyrkEEsswLFD6mzP2W3XFhNHoLli/jmcd1ZsyU0kxM48AZyiS5eiw/N8 YbLqTYS0Zk4xF73W/+vb77DOCIpVqCDj9AlAZxaivOQboRWSiHeWEH9VTm+zno2XWD/g hkSeGVDy5XXqCaX88O/0JNOy+nNc0mMJHELtlbPlEdnokrybdWESgeWHx+uSpbfy1ejo PiVTv3j/2E+qg94VdvCp9hP2kP72L9yi7aFBX4jthWJPYmbkg0IEyjS696Ivou0m2eOE YIzkZAXagJ8qSgzgUcRYiP5SKHrfM77Jj2XCyzZgA5DBX4Ecj6Av/K6+oOsRsSK1hcVQ RUtg== 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 h2si13468681plh.380.2019.06.12.01.37.22; Wed, 12 Jun 2019 01:37:38 -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 S2407487AbfFLHm7 (ORCPT + 99 others); Wed, 12 Jun 2019 03:42:59 -0400 Received: from gofer.mess.org ([88.97.38.141]:47575 "EHLO gofer.mess.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2406649AbfFLHm7 (ORCPT ); Wed, 12 Jun 2019 03:42:59 -0400 Received: by gofer.mess.org (Postfix, from userid 1000) id 79842602BB; Wed, 12 Jun 2019 08:42:55 +0100 (BST) Date: Wed, 12 Jun 2019 08:42:55 +0100 From: Sean Young To: YueHaibing Cc: mchehab@kernel.org, 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: <20190612074254.eky2xo7bajorkhfy@gofer.mess.org> References: <20190612034310.4640-1-yuehaibing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190612034310.4640-1-yuehaibing@huawei.com> 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 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). > 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