Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5352767ybi; Wed, 12 Jun 2019 00:47:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7/AR2FDMeCqNVIx8jYmXUiVYt1EjSuG3ihQHR+UTZgErhw183wI69fh1zFOh6FBFN7NiW X-Received: by 2002:a17:902:294a:: with SMTP id g68mr81990118plb.169.1560325620004; Wed, 12 Jun 2019 00:47:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560325619; cv=none; d=google.com; s=arc-20160816; b=zFq4saaRYY6VFKyBZR4maSqZGS/A7wVDmd+ANTTVtmW2rYpD104QhiH2F/8ydHyHEk BZv/FiFJ3ZFUsfqFk6a78z4Jhxsn2npEfEqdWk601yzvsyxY9VPFqNanxVgEE0GX9E8P bGPhauBxU87d1hKGSjISkMiqzWoy/OaHoUbsup+xZQMKX6ArftX2u3S1k+mEGHubLdMx DJ5X2df6ysZoVorsx5rN1Kg9V+whc0/GlGGjwM/+3b5lP5WDlkfkZWeo1jIivxhpqshm S4qccAitpviFjJPtbIOZ4D0jen/J7/sZYTY17u75XLf05e9hEKeGg+CBjRZaZxScDcw+ M/Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=RelekcWcR0cG/9xAjcoxbb2d59XIA2ye3Kwa4kLRNJI=; b=WxHt4hs5bWwNEwVbuK44AQL1TLV7q1OMYwNRknSx3/sCtIz7s+rkZtk60ZsCSb2F9n veRF/5Xjs90bFbwi6XtA5iCsAkNgOrk+VbF6rTTsGijjfhX7Kid8oIMMHS3+FtzepYGV VvtdQuzvRiKiL9vnokHuHWsC3SNU+JBBaLyJgLwaLObUw15m37+n1BEAHEREmydw2KvW +1VAaEN78ARmLfazfNLpnlliHwkUE50qtgQaKOgTt1Tle+Hc+ulAdBfkN+dsXzxtygdU hoIR4b2wOAE0rFkwh71y9b5hwiqdA3W7amiQ/it4/Ae+RnXw8RyUgFNT2xep4rwgBQ9i OizA== 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 b93si15743808plb.11.2019.06.12.00.46.43; Wed, 12 Jun 2019 00:46:59 -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 S2407148AbfFLDoQ (ORCPT + 99 others); Tue, 11 Jun 2019 23:44:16 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:55226 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726568AbfFLDoQ (ORCPT ); Tue, 11 Jun 2019 23:44:16 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6A40A1D14A6A6AD88AE1; Wed, 12 Jun 2019 11:44:14 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.439.0; Wed, 12 Jun 2019 11:44:05 +0800 From: YueHaibing To: , , , , CC: , , YueHaibing Subject: [PATCH] media: ttpci: Fix build error without RC_CORE Date: Wed, 12 Jun 2019 11:43:10 +0800 Message-ID: <20190612034310.4640-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 + select DVB_AV7110_IR if RC_CORE=DVB_AV7110 && (INPUT_EVDEV=y || INPUT_EVDEV=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