Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp412547pxb; Tue, 3 Nov 2020 03:00:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxE0E0nfvAcFe6lBLBpxd6hLCQWSSWCe6OeO1Ez3WPQN6Eu0Bt6YK+xUnjNMI3dg+gOfrE8 X-Received: by 2002:a05:6402:187:: with SMTP id r7mr20395177edv.360.1604401211922; Tue, 03 Nov 2020 03:00:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604401211; cv=none; d=google.com; s=arc-20160816; b=SuVXQDtVRXV1rlve5fpgzaOhCmm1iRB/2sJouvfNm5+hZLXpdrwyKLZ3uOfUPH993k VeeolimDi0k7VOuP7a1ttnhdFcxXPihoHE5dfXj8VpRGF4rjwGl0zMfioGLYyKNa8m7f /x7uzFI2pNFNhlZt1HnyleSQ9dZ2oW8XdKKFYmzD9pTs31TV1nsEhRlNK6iQCRJhtmEx h/qBBlLkk13LtwBBZPniJwUfDlDyUa9kSTxLdnZA9nMHp+5YGVFMZHykmeluCgW+4LOO fDp3eiRsstwqAbDFInN7W/uNzgI1ijKFSXbkRGTEyrnYZgFP2WNlF0kkjoQ78m/eOcpY YjfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=/poe2q74JqQgP5MfWf5lR5HiOXsCIjoMrxiheHi5+/w=; b=RhF2smhJTsFb1xNVCevn6rRyEPC72U0SiaYUYjVCAF6jCLCTeFQDMwNCfm8GrhMNo+ IQMWwoFDh+MDonFFEiScZAlic0OBdsED99vSJ+Gg94XwruEl0QWV6WwEHCEsXwn2oZZs V1zq1U2kErtkWkR4qiTNM1IblhewCaHoqvCXidcm3uI2okSiQAp1sHgPnxhwqVvv2tcs GaG63Hk+0geCc8vxE1BZNjRjOnJ33IgKrk0RPAI4tJtPn6r3tjoF3PWs2SuR25NftcZK ZYwDqK9kVMbeeoZ8A2ESshM6EXyiUHOxj4wpyV6p7cGjJPJmTXdkAbHLe+6qDtkLUWdJ qHLg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si12195942edy.250.2020.11.03.02.59.48; Tue, 03 Nov 2020 03:00:11 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728174AbgKCK6U (ORCPT + 99 others); Tue, 3 Nov 2020 05:58:20 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:3025 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728108AbgKCK6U (ORCPT ); Tue, 3 Nov 2020 05:58:20 -0500 Received: from lhreml710-chm.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id 44291E399A9F1DC65D48; Tue, 3 Nov 2020 10:58:19 +0000 (GMT) Received: from localhost (10.52.125.233) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Tue, 3 Nov 2020 10:58:18 +0000 Date: Tue, 3 Nov 2020 10:58:17 +0000 From: Jonathan Cameron To: Necip Fazil Yildiran CC: , , , , , Subject: Re: [PATCH] Input: touchscreen: fix kconfig dependency bug for TOUCHSCREEN_ADC Message-ID: <20201103105817.00005a7f@Huawei.com> In-Reply-To: <20201102221504.541279-1-fazilyildiran@gmail.com> References: <20201102221504.541279-1-fazilyildiran@gmail.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.52.125.233] X-ClientProxiedBy: lhreml716-chm.china.huawei.com (10.201.108.67) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 3 Nov 2020 01:15:05 +0300 Necip Fazil Yildiran wrote: > When TOUCHSCREEN_ADC is enabled and IIO_BUFFER is disabled, it results > in the following Kbuild warning: > > WARNING: unmet direct dependencies detected for IIO_BUFFER_CB > Depends on [n]: IIO [=y] && IIO_BUFFER [=n] > Selected by [y]: > - TOUCHSCREEN_ADC [=y] && !UML && INPUT [=y] && INPUT_TOUCHSCREEN [=y] && IIO [=y] > > The reason is that TOUCHSCREEN_ADC selects IIO_BUFFER_CB without depending > on or selecting IIO_BUFFER while IIO_BUFFER_CB depends on IIO_BUFFER. This > can also fail building the kernel. > > Honor the kconfig dependency to remove unmet direct dependency warnings > and avoid any potential build failures. > > Fixes: aa132ffb6b0a ("input: touchscreen: resistive-adc-touch: add generic resistive ADC touchscreen") > Link: https://bugzilla.kernel.org/show_bug.cgi?id=209881 > Signed-off-by: Necip Fazil Yildiran Acked-by: Jonathan Cameron > --- > drivers/input/touchscreen/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig > index f012fe746df0..cc18f54ea887 100644 > --- a/drivers/input/touchscreen/Kconfig > +++ b/drivers/input/touchscreen/Kconfig > @@ -96,6 +96,7 @@ config TOUCHSCREEN_AD7879_SPI > config TOUCHSCREEN_ADC > tristate "Generic ADC based resistive touchscreen" > depends on IIO > + select IIO_BUFFER > select IIO_BUFFER_CB > help > Say Y here if you want to use the generic ADC