Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2100174ybz; Thu, 23 Apr 2020 11:34:46 -0700 (PDT) X-Google-Smtp-Source: APiQypK+fFjG37JJWOG4zx2XLsJOIxsuyELF4u69CN7upE2W640Msd0lcdNIl8Fr+UcC7ZonwMHw X-Received: by 2002:a50:fc0d:: with SMTP id i13mr3698715edr.280.1587666886123; Thu, 23 Apr 2020 11:34:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587666886; cv=none; d=google.com; s=arc-20160816; b=WdK8YO/N9af4SiFYq4UK/+jWb87Hc7naYrfe4f3Yr4w/Vm/PfaV875YziI/sPM91dn Gplpj7qnBeJL1k5JPcJ8AMLsEQShyVIqh1zcXwB2eUsOdK3Q7OuAYMdvEK3S1JcnR4DE +jV3XhuMe3FnS1ti0OLF6J3ShXk0/COWuzNV2kYYqPz/ka9FjqweP9gcLykYnZNxjYWZ O6+6wJqD8ubCQ4DJempJ9/e6dtTG12D9WU5JMGRsKI45WIajKMeDCJl7Gyg6Yl8A6wl6 Rcu+zvk5zPmcGLXkGygQUHm9K1zwnVIXOcMxljv941HAGew5ETZ2UsNzMRYPzcL7ujPZ SoWA== 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:dkim-signature; bh=j6vx62T0cUnGorC7bQl2F/WmrnGQGNIQf7tVvJs2alQ=; b=i9KZDEgRBZA58oXUKPmxVp+iVNbQeqNSJQhfgWckW2X7jz+hIbcCeQhhNsCa+u6dOz +n9Vm1gxZcgNspvr9cjP09mBu2BzmNuWDa+dLVHcYpLd2zquxewLtJiwmZTw/2DeXy7B 3EGu9QGmOAc6764qryrpbIYy6ZvnpGM9qHzYnZACz8xlfQsdJnZkK+XBnBhjgNP1DKRY IljgvHll1T9cX7Aq3Sw0D4TzUL9doDMQUmg6N09wJP5W0BWzbIF03a8+LQ2l05UWBwfk ZYpMBBTYtw0Do7OI9EE6W1QSQ+PEgG7W/NEkv427h7eMpfMOWN2asUff9MpDTGmPCyo1 JnMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b="kINT/mL8"; 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 w11si1642039ejz.146.2020.04.23.11.34.22; Thu, 23 Apr 2020 11:34:46 -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=pass header.i=@ziepe.ca header.s=google header.b="kINT/mL8"; 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 S1730319AbgDWSa6 (ORCPT + 99 others); Thu, 23 Apr 2020 14:30:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730213AbgDWSa5 (ORCPT ); Thu, 23 Apr 2020 14:30:57 -0400 Received: from mail-qt1-x842.google.com (mail-qt1-x842.google.com [IPv6:2607:f8b0:4864:20::842]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 882B0C09B044 for ; Thu, 23 Apr 2020 11:30:57 -0700 (PDT) Received: by mail-qt1-x842.google.com with SMTP id s30so5736053qth.2 for ; Thu, 23 Apr 2020 11:30:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=j6vx62T0cUnGorC7bQl2F/WmrnGQGNIQf7tVvJs2alQ=; b=kINT/mL8BJANHc3utJboA7e++/E97u13tPbXwtZsXtg6xIZbI5o2ksqDU5FSEo8bMC WJJy03Eds1xqsDhuQaNN7ZJ1OwSiDAyzlx09E46h2cGtcUDY/ee3NfpM2p1mrhQxt6OL I5QRMV/LAHoUyHa92JzJMMvJp9DOZQbzoPLAy9391WCI3Tz/VdW4Zr780p8+DFy0luYO 9NwRigT3BcYhbsoyhXfPbCjT+zrv0gfeXNDOKdcxiXBalV9FUmGnC47UXg+0uTuUoHN1 qk115iMNzVbf637wm1kzra4h5nRq9knmOGSwMcU21hWhXtDXf9kspo6ipjy0DcmoaJa1 Tdvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=j6vx62T0cUnGorC7bQl2F/WmrnGQGNIQf7tVvJs2alQ=; b=YoBuWYDc4gd/ZnU2bUzV58fp+svcNZqzmmjulbaedTwpT63ktobVtFQ9KNDnKSbIsO YgQN/WUVXTfNN1SVfLs7xKmN7IKckvreia1b0nXCTZHy0FZc5SKQYz6cEfwGIPiMbkBe LbScXdVovZrVTE8lZooQ3al7WMaIsOehjxXV33fBp7gLKBy3Bba/VLvsrU1OUtn3lduT 2lqjSrQiDwBqXMV6p5Y24Vo52AYsikSZL+ivvJy8ZOlg2/qjOkwkVhqG/sV7gfar4UEo hwbJzx9G2rhbiWmXQ5RIgNMF/uSwmpXtmlgBHoW0JkvTsT32hK3rnElwWT+mQvpgik9n APjQ== X-Gm-Message-State: AGi0PuZF8C8qNlNSYOsEHpIg9JU4uy9A8abBNvncVkv+XuO1ETyTokbE a1+xm7EzV4OPGJ/rWQL22FYnpA== X-Received: by 2002:aed:2b43:: with SMTP id p61mr5464265qtd.298.1587666656655; Thu, 23 Apr 2020 11:30:56 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-57-212.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.57.212]) by smtp.gmail.com with ESMTPSA id s8sm723438qtb.0.2020.04.23.11.30.55 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Apr 2020 11:30:56 -0700 (PDT) Received: from jgg by mlx.ziepe.ca with local (Exim 4.90_1) (envelope-from ) id 1jRgch-0006EC-Bq; Thu, 23 Apr 2020 15:30:55 -0300 Date: Thu, 23 Apr 2020 15:30:55 -0300 From: Jason Gunthorpe To: Nicolas Pitre Cc: Randy Dunlap , Jani Nikula , Saeed Mahameed , "masahiroy@kernel.org" , "Laurent.pinchart@ideasonboard.com" , "airlied@linux.ie" , "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" Subject: Re: [RFC PATCH 1/2] Kconfig: Introduce "uses" keyword Message-ID: <20200423183055.GB26002@ziepe.ca> References: <62a51b2e5425a3cca4f7a66e2795b957f237b2da.camel@mellanox.com> <871rofdhtg.fsf@intel.com> <940d3add-4d12-56ed-617a-8b3bf8ef3a0f@infradead.org> <20200423150556.GZ26002@ziepe.ca> <20200423151624.GA26002@ziepe.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 23, 2020 at 11:33:33AM -0400, Nicolas Pitre wrote: > > > No. There is no logic in restricting MTD usage based on CRAMFS or > > > CRAMFS_MTD. > > > > Ah, I got it backwards, maybe this: > > > > config CRAMFS > > depends on MTD if CRAMFS_MTD > > > > ? > > Still half-backward. CRAMFS should not depend on either MTD nor > CRAMFS_MTD. Well, I would view this the same as all the other cases.. the CRAMFS module has an optional ability consume symbols from MTD. Here that is controlled by another 'CRAMFS_MTD' selection, but it should still settle it out the same way as other cases like this - ie CRAMFS is restricted to m if MTD is m Arnd's point that kconfig is acyclic does kill it though :( > It is CRAMFS_MTD that needs both CRAMFS and MTD. > Furthermore CRAMFS_MTD can't be built-in if MTD is modular. CRAMFS_MTD is a bool feature flag for the CRAMFS tristate - it is CRAMFS that can't be built in if MTD is modular. Jason