Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2149414ybz; Thu, 23 Apr 2020 12:28:12 -0700 (PDT) X-Google-Smtp-Source: APiQypLfAHPK4Sm1DvyZPbXiGQfB/8oSL2KWUaoVaBgeZnIDJPatmL9oVfOmIG2FEsRlTc293gRn X-Received: by 2002:a17:906:504f:: with SMTP id e15mr3304651ejk.45.1587670092218; Thu, 23 Apr 2020 12:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587670092; cv=none; d=google.com; s=arc-20160816; b=BKHaq55zJ+L/SVGREVmbdMQtNGNiv+1pqMwMvJj/tF4Q6rPBTu0BJwboEVFrZRN17g lZ3woTooVWDXMRKVyiIRmfDzba2caoQIMpb5Yg67pgftqGoqmycO5r2htZCSxGyDGO75 075F3lH8eZoRjYf0bdRsROuS+8UJthxqDrEskhZad5gUlNVCSnRH799YczsifX/3+hJC QqO52rf1ETtOtQF8kJz/E2QgrVyHVhIBzlOfU+7lz+hDzj91/gUpsmZrR55Ts0R3+Jio jPb23Uj5gkZUDfOL9apcnF94iqsMwQltunD4JPO4eIKlp0qAPUpIKi1sbnaP1YISSJmK DQNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=BmqjZdq1bpkw32K9UySD0+RyLbTgcaLIXzGMV9UfXx4=; b=WNZUNcifvEQFN3FHk0lvImJPKs0w+yvGYAnpoHHA0u3rbuDDkJ+L/ergyztDrHOzIO IYFi5tQTuj7oy4xf7fxjWubUlNxQTRs4akfRBzJzdJ+aU2y8QcTHw1i5DiSFfCeylKZD d4TqkeppAuPtBxVd7cuKvC1G4H6hXfw2qf5TGBjRgzSnqYaawmZcY6tD5HJtKebx4rzL z8SxLfwu92rB3YoDkTIJJqypYz/7IsiS+sHT3lP5zqHNbrxzOYN6iUzR2hqSIZb7Fqls RYbI2hT45Qmy2SysE18UNGFi9+6clHedHBWdk13mQFF0r7gG0ASIFYXCepHQDidQTHhF kGdg== 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 h13si1809756edw.475.2020.04.23.12.27.48; Thu, 23 Apr 2020 12:28:12 -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; 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 S1729097AbgDWP22 (ORCPT + 99 others); Thu, 23 Apr 2020 11:28:28 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:33431 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728865AbgDWP21 (ORCPT ); Thu, 23 Apr 2020 11:28:27 -0400 Received: from mail-lj1-f179.google.com ([209.85.208.179]) by mrelayeu.kundenserver.de (mreue009 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MXH3e-1jiiIB0GPm-00YlvZ; Thu, 23 Apr 2020 17:28:25 +0200 Received: by mail-lj1-f179.google.com with SMTP id j3so6626065ljg.8; Thu, 23 Apr 2020 08:28:24 -0700 (PDT) X-Gm-Message-State: AGi0PuZUU0SgLRsgYacVk2JXjaYAMeu6r00aDjYVvoGo1i9IfilFXY8n sO8fqQ4igkpA/IZdFn8cizzTV+CGcQgbKAQe6Qw= X-Received: by 2002:a2e:6a08:: with SMTP id f8mr2858238ljc.8.1587655704471; Thu, 23 Apr 2020 08:28:24 -0700 (PDT) MIME-Version: 1.0 References: <45b9efec57b2e250e8e39b3b203eb8cee10cb6e8.camel@mellanox.com> <62a51b2e5425a3cca4f7a66e2795b957f237b2da.camel@mellanox.com> <871rofdhtg.fsf@intel.com> <940d3add-4d12-56ed-617a-8b3bf8ef3a0f@infradead.org> <20200423150556.GZ26002@ziepe.ca> <20200423151624.GA26002@ziepe.ca> In-Reply-To: <20200423151624.GA26002@ziepe.ca> From: Arnd Bergmann Date: Thu, 23 Apr 2020 17:28:08 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 1/2] Kconfig: Introduce "uses" keyword To: Jason Gunthorpe Cc: Nicolas Pitre , 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" , "netdev@vger.kernel.org" , "jonas@kwiboo.se" , "kieran.bingham+renesas@ideasonboard.com" , "narmstrong@baylibre.com" , "leon@kernel.org" Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:2iQTX2VsakGHk54BTB9WVoqR/JzU2kdpHG5qlk7OzErzbDjBSFJ cw4+bPaHDdKsw3pJ2bgD5MLFptdhCXGqhbySx9hQn24n/AWHnU+wNuuNihTQrmvZZ4B/Pt+ AWOp/GpqTWV+iiRpnOyNcvnyxixueiY7CyokX7afxwIn3Oo659/VkB51cMdLTfUJsSsU/2q DEUtJ0DJw15QT/HVKXuDA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:yXYeGGUUVu4=:KOVIF5il65qxHEA6pI+gSc aAfwOmhprWnuOPz+7W+rziPQkbN0ejmKpA4BZqkwFCnaDPPv7pDgfS3i5nu1MHtQqUHYLQCG8 /0/DYe+pZDRflErTRstkLc/IRW6TS+/l/iyKITt18tPZnbzW/jegLplN2RzgUawwvLkWtfsSx mBZ5tDr4b2JwBPF9NuSmg0xXGO8Z1SRzrpsQEsCduQOpduc9DKk/I6ccsitsv6ARTH1ep4Gm5 PvSruZGSuG8hiDOrcOg8YLEhGjymwtvh46Og2gaoJ5pgWaJuMI1hUmi73TAijEyKklEMK4uQv uDS3kvyT9NMDg4BCjl7w62Xeox4SgGhYWn2EPcebRaDpt2bup9zhTIkBunkTJPNjvgLhoc5TQ j/uKFI4UpYjPkea32bJHAifAmObWP8ih2wSfQOvPXd+wybbLdkT6KPOCHbNrSwXDTq3HhPpq3 E0rqwicYUJmeGJXz+X5opr7Nq1Es7a1wFdoCSIoYaNczaTzaWFoEb3k+Ock7t94wG9cqgvLJb rtKzCn+CLRWE5O0an+1PLcyrYMQivB8BvJnh6PbBUkeNn9aYNrLLsDc4IA9I71NgqYFLmZ04j WZspW8jH2Jj/fCdMO8BeWLSeeKlvDuNmslBxld9UBF1+6u6fQe2cpnNG9ML+LG1cCVDeQAwGo cNFoheYAQWKdFlfDfBGmZX85lY+R5FqbwyoXKKBMiPvBIX3uERVe/KQOoRTuJxZ+C9keneMli qAgmg8+fmD19nRdG2zAS3M8tk/7b+xVM3Cp7pJJvbfr6f3nwjSrzf+eeXSlq6D/B71YcgPJJJ MMtB/aDDv0NNGi9TzKBToxRdsVO8sFxz0P65s1gRPBNm6MAcKs= 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 5:16 PM Jason Gunthorpe wrote: > On Thu, Apr 23, 2020 at 11:11:46AM -0400, Nicolas Pitre wrote: > > > > I don't see how that one can be helped. The MTD dependency is not > > > > optional. > > > > > > Could it be done as > > > > > > config MTD > > > depends on CRAMFS if CRAMFS_MTD > > > > > > ? > > > > 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 I'm not sure this can work if you also have the requirement that 'CRAMFS_MTD depends on CRAMFS': dependencies in Kconfig generally cannot have loops in them. Arnd