Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1196753ybz; Wed, 22 Apr 2020 15:39:18 -0700 (PDT) X-Google-Smtp-Source: APiQypJZ3FTvUwyHhi6H1mgsZ8KJOzRfiezjDsUPj2PU/kHnQP+7XZXFa0LWsae10wgyPH0Enc5C X-Received: by 2002:a17:906:9518:: with SMTP id u24mr449472ejx.320.1587595158181; Wed, 22 Apr 2020 15:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587595158; cv=none; d=google.com; s=arc-20160816; b=a98r8Q7K0OFxWCIUs9tJhah1JK7YdjWvIJUuSYVEv+cDhcbDHzYd1Vx5e9VPfYvVhn 3tj+PoU8bKpkifUGXK5BQbR/GTl3A+Pu2vvnUcP+xCD7T6DGAf2kejoyV+bO9k5PYGU/ ebnAjzUambC+t4H8VXy71RAfBa91M2QS1BWJBzOF29/qc8Ic8LN0xRsQA7iIp1WHFbtd m++Ves4jLspc1Gdgk2sndIYHcrdNR7p7yDLGH2XS4V0XeSMnUL96zMPCcO5Kjy5IqIii hWztFZq5B4xr6R2+7+4IBYg6DbNhKm0RK8mMf7N/yxA4RoJBrk1I5EwxVtXN3L5YgnkX OcxA== 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=ELd+lIpZ+BIBbyIuMMJ83qOUII9r2nADeB7F0SdSefg=; b=f21/edoyvWZap0cpRORmP8z37uAAhH3P9k7rrqNRcL5RydUq/DHxU4dEmkBxn4I0E9 o6fYnEUmPvLPxusCt/V4LpWI/6TCyJYsqSvQ8AHGuvKGg+CZVvXgdaDfjzMiVHP2sCWP NqpgHcnMQP2WEVXRUWZHVr6dVLeiB4KNSCgQDjnDsePA/9VxHSpEcpC+RvU3EjCTNYJJ PMRma/gg3C0J5OQupgk7LwAGGtFmtVllXcqVESZeKq0FAsa2DPDKmvqbCYDonUy7JkUc tG5D/QKMTKPIMg0cbU1WyEGGW2LXWzSSSQCb1BPpTJhpCwkh+s6eDiqmsRg3HhSRsCG6 WyOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=OQ+MfXN3; 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 d10si255246edx.13.2020.04.22.15.38.54; Wed, 22 Apr 2020 15:39:18 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=OQ+MfXN3; 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 S1726224AbgDVWh7 (ORCPT + 99 others); Wed, 22 Apr 2020 18:37:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725839AbgDVWh6 (ORCPT ); Wed, 22 Apr 2020 18:37:58 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD3DEC03C1A9; Wed, 22 Apr 2020 15:37:58 -0700 (PDT) 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=ELd+lIpZ+BIBbyIuMMJ83qOUII9r2nADeB7F0SdSefg=; b=OQ+MfXN35zU6e5S6hx3UDK1fNd AbGEikLauA3ZzUIWgzWIcF1QMYUQIiQGBKU9qFF4Koqbfs/0xpyW7/89rTV7uz4hE9ydxCThN1IjY Ts3m4IvWhRGbrtFaSYLxb04gVitsS3cUBQm2SWvSZIHgXYf5UogCVAxq8kc/RjL4D74n04wOO/BRF 1HKdHip21kghxOcnlMY85hA6YxKVOfSyPBTqq6/hOc/cXohgWkcYJyXrnKq0IY8DGSahwaBt+mEaQ trZTjhJfyaDgnY7x3nbXo6L2y0BRILykhpf0UHJlqRACs9A1u9r3ddoEYqo9hpTyS2mLA2E5K5+17 C+e9gxyg==; Received: from [2601:1c0:6280:3f0::19c2] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1jRO05-0005n5-Og; Wed, 22 Apr 2020 22:37:49 +0000 Subject: Re: [RFC PATCH 1/2] Kconfig: Introduce "uses" keyword To: Nicolas Pitre , Jani Nikula Cc: Saeed Mahameed , "masahiroy@kernel.org" , "Laurent.pinchart@ideasonboard.com" , "airlied@linux.ie" , "jgg@ziepe.ca" , "linux-kbuild@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "jernej.skrabec@siol.net" , "arnd@arndb.de" , "netdev@vger.kernel.org" , "jonas@kwiboo.se" , "kieran.bingham+renesas@ideasonboard.com" , "narmstrong@baylibre.com" , "leon@kernel.org" References: <20200417011146.83973-1-saeedm@mellanox.com> <87v9lu1ra6.fsf@intel.com> <45b9efec57b2e250e8e39b3b203eb8cee10cb6e8.camel@mellanox.com> <62a51b2e5425a3cca4f7a66e2795b957f237b2da.camel@mellanox.com> <871rofdhtg.fsf@intel.com> From: Randy Dunlap Message-ID: <940d3add-4d12-56ed-617a-8b3bf8ef3a0f@infradead.org> Date: Wed, 22 Apr 2020 15:37:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.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 4/22/20 2:13 PM, Nicolas Pitre wrote: > On Wed, 22 Apr 2020, Jani Nikula wrote: > >> On Tue, 21 Apr 2020, Nicolas Pitre wrote: >>> This is really a conditional dependency. That's all this is about. >>> So why not simply making it so rather than fooling ourselves? All that >>> is required is an extension that would allow: >>> >>> depends on (expression) if (expression) >>> >>> This construct should be obvious even without reading the doc, is >>> already used extensively for other things already, and is flexible >>> enough to cover all sort of cases in addition to this particular one. >> >> Okay, you convinced me. Now you only need to convince whoever is doing >> the actual work of implementing this stuff. ;) > > What about this: > > ----- >8 > Subject: [PATCH] kconfig: allow for conditional dependencies > > This might appear to be a strange concept, but sometimes we want > a dependency to be conditionally applied. One such case is currently > expressed with: > > depends on FOO || !FOO > > This pattern is strange enough to give one's pause. Given that it is > also frequent, let's make the intent more obvious with some syntaxic > sugar by effectively making dependencies optionally conditional. > This also makes the kconfig language more uniform. > > Signed-off-by: Nicolas Pitre Hi, If we must do something here, I prefer this one. Nicolas, would you do another example, specifically for CRAMFS_MTD in fs/cramfs/Kconfig, please? thanks. -- ~Randy