Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp3016714pxb; Mon, 19 Apr 2021 21:25:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyY062jZnyMT/MYfsvAjPuewljQfrngwtaVl+9cwWmb4X3H0Tn0hb/teQmr4cS5Tp+mW0b2 X-Received: by 2002:aa7:cb90:: with SMTP id r16mr30341043edt.139.1618892739410; Mon, 19 Apr 2021 21:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618892739; cv=none; d=google.com; s=arc-20160816; b=YqbGO+kqdZ5Y/EgsBmdqJWVi9aUUg+bM1gDaW10C/6+Mid7MoCzeSCd4uUGOHBDo7u 7PSfvUuSdemBgd5zw7d9EFcPeL21M9gzGhsCrI7dArJANeM67G9szUAoQjk+iPqqH9CY URcTN+Nt82HUpr2FF3OZ5g9OH/6Dhu0i/ombHhzN5QQ3gv8rnRCyYkebXj/25PGWD3Kd CBZ/T8laeKreWckFwC0wIGK+s1/cOQnYj6XLHiJaYDlqNPgH0rszWp8DTZ4pBmSgjmtp ayBJOCdKf0H8b0HB9V+O2gbJ9Kb/bVAiYtCyzVlQii87xT026c7Q45HPK3aISWKJ9XWO z6vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=TVR0jEOy2FO874s02Ufa09FVytszPa9fk5HF5Q8HkIU=; b=rcX9FN5o5Ns3XtS3WVpKGcaqgK6vr28v1R6xusrEDdTmDLNiOOc3hQsd5OKAseO92G dlC6JH6dpDF9CxnIoN/2gj4SR7ET5e4gFFv6/DRxQIXdr7/Nit9trMq149WW38/CA7Bu LbnUEbf+iRjAqm4d945rro4xM2mSt2ejuwdaxzmcZ7W43fAOa5AA1WFiHhFIfBh7DJ99 lDh5Wco6/A5m5dJhtfaoHJUtWu+3iQxFa6MG05uhJHLi0FrKFGZtn2sE9mpc14o9tKpV iHgaSpBSAC27Veg1DWC14nti4GGcN3RlXnR7W1Dl5q7YG8u0LHGSVh3hkjLtrFkxscsp SsWw== 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 ka24si14174436ejc.64.2021.04.19.21.25.15; Mon, 19 Apr 2021 21:25:39 -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 S229616AbhDTEYs (ORCPT + 99 others); Tue, 20 Apr 2021 00:24:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:37850 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbhDTEYr (ORCPT ); Tue, 20 Apr 2021 00:24:47 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 0829EB15E; Tue, 20 Apr 2021 04:24:15 +0000 (UTC) Subject: Re: linux-next: Tree for Apr 19 (bcache) To: Jens Axboe Cc: Linux Kernel Mailing List , "linux-block@vger.kernel.org" , linux-bcache@vger.kernel.org, Kent Overstreet , Stephen Rothwell , Linux Next Mailing List , Randy Dunlap References: <20210419202309.0575ad77@canb.auug.org.au> <66d41349-60ba-f27f-5c56-3520a40dd83f@infradead.org> <76e63e74-2237-f672-eb10-edde017bc76e@kernel.dk> From: Coly Li Message-ID: <061cd630-2740-2da9-cfbe-fd18adb22fdc@suse.de> Date: Tue, 20 Apr 2021 12:24:11 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 MIME-Version: 1.0 In-Reply-To: <76e63e74-2237-f672-eb10-edde017bc76e@kernel.dk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/20/21 1:50 AM, Jens Axboe wrote: > On 4/19/21 10:26 AM, Coly Li wrote: >> On 4/19/21 11:40 PM, Randy Dunlap wrote: >>> On 4/19/21 3:23 AM, Stephen Rothwell wrote: >>>> Hi all, >>>> >>>> Changes since 20210416: >>>> >>> >>> on x86_64: >>> >>> when >>> # CONFIG_BLK_DEV is not set >>> >>> >>> WARNING: unmet direct dependencies detected for LIBNVDIMM >>> Depends on [n]: PHYS_ADDR_T_64BIT [=y] && HAS_IOMEM [=y] && BLK_DEV [=n] >>> Selected by [y]: >>> - BCACHE_NVM_PAGES [=y] && MD [=y] && BCACHE [=y] && PHYS_ADDR_T_64BIT [=y] >>> >>> >>> Full randconfig file is attached. >>> >> >> I need hint from kbuild expert. >> >> My original idea to use "select LIBNVDIMM" is to avoid the >> BCACHE_NVM_PAGES option to disappear if LIBNVDIMM is not enabled. >> Otherwise if nvdimm driver is not configure, users won't know there is a >> BCACHE_NVM_PAGES option unless they read bcache Kconfig file. > > But why? That's exactly how it should work. Just use depends to set the > dependency. > >> But I see nvdimm's Kconfig, it uses "depends on BLK_DEV", I understand >> it is acceptable that LIBNVDIMM option to disappear from "make >> menuconfig" if BLK_DEV is not enabled. >> >> For such condition, which one is the proper way to set the dependence ? >> - Change "select LIBNVDIMM" and "select DAX" to "depends on LIBNVDIMM" >> and "depends on DAX" in bcache Kconfig >> - Or change "depends on BLK_DEV" to "select BLK_DEV" in nvdimm Kconfig. > > The former. > Copied. Thanks for the hint. I will post a fix soon. Coly Li