Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp3002718ybf; Mon, 2 Mar 2020 20:47:04 -0800 (PST) X-Google-Smtp-Source: ADFU+vuZ2ZXt5m7Z6mhkp2+z/o+TOlHHQDJrsI4oLLXmjcJd+AFF5Tk+FSSRXBpSO0xwUdPNd+6J X-Received: by 2002:aca:2407:: with SMTP id n7mr1316128oic.14.1583210824070; Mon, 02 Mar 2020 20:47:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583210824; cv=none; d=google.com; s=arc-20160816; b=YzBWFRm788FOmy3bhsW7wNXlVq0zhnNvGtuoTG5nkkRNeZIl3bpjsZr/y603CDvzOZ 590nC2NPGqbfpn2zgm0Zm5wUcQ6OpB5IqrH37fAehtKsAu0p6wQ5r3URapXmFLvTAkep WV+C39i69P60YfU2jCwdUaKURaheus57QlekANUifEYtSIVfH6ujuVpFEZmgeRVtivf0 6AaRsO3utikEE11d42J/AxE1rnj5+8R/uG9e5gdAg1qq38U2kX50ncEGUfAV2OVg16pU q3Wqlwk6J1tZU+N8WxsITjs+nGnahkMiFfEpcm35zxS2m6RWhxUXmCaaonfABx5i5c5C EXqw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=eLN9YBiut+Gct7IPcAPFG+XNP1pdvkitmza97VKOpx4=; b=fcVprYgD1tP7sKg8Ep10ax/8g70xrwUHoaf6mXhyCsmeQ5dfe66jHgQ4LlYfrJ+N9x 9Z9lWAcfwkn0wNWIAXd37lQBNoPoso15TARtdc/+Dfe4nJQIPC/oXHXu0YJSNC5hA9Ky GUvCznXUrqu8dwhhGtXdS4U5wLFf2+/hYnpWQX3hrX0kBmE1QL2zjHFq14ocYl/t4REX LEWB0FERr0vrYVWcv0lGnCdKzb2OgNS8VTbHa5A/ixpBT0kIBBC9lVlAQI4AT4K+NHja k91/kX02jrtoi94yeCYMx+SlUnL36b15M3wzmiZKlVzauSa8dUlJzEPEgTC60N7J5Pda mz9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WnpEGMNv; 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 v126si7945079oia.106.2020.03.02.20.46.51; Mon, 02 Mar 2020 20:47:04 -0800 (PST) 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=bombadil.20170209 header.b=WnpEGMNv; 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 S1727095AbgCCEpi (ORCPT + 99 others); Mon, 2 Mar 2020 23:45:38 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:44544 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726954AbgCCEph (ORCPT ); Mon, 2 Mar 2020 23:45:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description; bh=eLN9YBiut+Gct7IPcAPFG+XNP1pdvkitmza97VKOpx4=; b=WnpEGMNvpbb3FWnqXyTVw6ttOp SIV3NYVwCcFouCVDjMJuqjgKkB/ynlpqqIVj1PxxbgKM+chESG8Jdvbyz9jyjyh2kS9E5mH/5pvEv eQxYpgmqkiz/ER3qDrFtlkFlX0tAX3EyMC+bqPW4h3p9g8oFcV4vWpYL80BQ6KoDIx45o5Vw0j6qV cP+AnG3nNRoeFXsNYtTXtpZDgR2MqY/RzWt8nSkH0C2+lm3tDnRhhjc3pyzjNoBKDgOqrIUbQAfhV RuBS76fpmFuF00svrfSJgdgYGRMfZ6qHU6A5ZW8tW3DsZv+PyvPEsOJCorXkxHSDBDLCVEBtbQldl 7heFbZtA==; Received: from [2601:1c0:6280:3f0::19c2] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1j8zR3-0000hy-2G; Tue, 03 Mar 2020 04:45:37 +0000 Subject: Re: [PATCH] pinctrl: sprd: Fix the kconfig warning To: Baolin Wang , linus.walleij@linaro.org Cc: orsonzhai@gmail.com, zhang.lyra@gmail.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org References: From: Randy Dunlap Message-ID: <3271ce73-7165-c545-43e7-93d85a7c3680@infradead.org> Date: Mon, 2 Mar 2020 20:45:35 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/2/20 7:32 PM, Baolin Wang wrote: > On X86 plaform, if the CONFIG_OF is not selected, and set the > CONFIG_SPRD_SC9860 as 'm', that will cause below waring: > > WARNING: unmet direct dependencies detected for PINCTRL_SPRD > Depends on [n]: PINCTRL [=y] && OF [=n] && (ARCH_SPRD || COMPILE_TEST [=y]) > Selected by [m]: > - PINCTRL_SPRD_SC9860 [=m] && PINCTRL [=y] > > Thus move the configuration dependency under CONFIG_PINCTRL_SPRD_SC9860 > to fix the warning. > > Reported-by: Randy Dunlap > Signed-off-by: Baolin Wang Works for me. Thanks. Acked-by: Randy Dunlap # build-tested > --- > drivers/pinctrl/sprd/Kconfig | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/pinctrl/sprd/Kconfig b/drivers/pinctrl/sprd/Kconfig > index c9e7f0b..eef35d0 100644 > --- a/drivers/pinctrl/sprd/Kconfig > +++ b/drivers/pinctrl/sprd/Kconfig > @@ -4,9 +4,7 @@ > # > > config PINCTRL_SPRD > - tristate "Spreadtrum pinctrl driver" > - depends on OF > - depends on ARCH_SPRD || COMPILE_TEST > + tristate > select PINMUX > select PINCONF > select GENERIC_PINCONF > @@ -16,6 +14,8 @@ config PINCTRL_SPRD > > config PINCTRL_SPRD_SC9860 > tristate "Spreadtrum SC9860 pinctrl driver" > + depends on OF > + depends on ARCH_SPRD || COMPILE_TEST > select PINCTRL_SPRD > help > Say Y here to enable Spreadtrum SC9860 pinctrl driver > -- ~Randy