Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp17590575ybl; Thu, 2 Jan 2020 08:15:44 -0800 (PST) X-Google-Smtp-Source: APXvYqwPvXrXsXdjlD3uIefYyCxr+/RkR28GJFiv9wBglVXmI6jexSNd5JoAPHuLa7hJR15q3lcA X-Received: by 2002:a05:6830:1cc5:: with SMTP id p5mr68351840otg.218.1577981744431; Thu, 02 Jan 2020 08:15:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577981744; cv=none; d=google.com; s=arc-20160816; b=c5l5cw2rd32f94BMtxqGh7/XW1huR33H4pfkhZLwMYQLlIygdf6JvNL248JURWO0+n jlDD9KGuO16ttToDtrfxRxZnHWcEsIRq+7rbaN6Sl9olm9oy5IuntU0n0plaoXbVaTQf savMkJbsKvN+F1GnjV27hNkTMbQISd2bPwThd4Q4IYUJNeZdlIZ4Vb45DotHIKDIaSaI z1HxliiPSNfAU0K09dIcFlbTC/qRZ2TXEnKFC+fjK5GpVZ6FWGJqUJ0IKwYLH7QvdZre 4Q8aEPCXlxb2B9XrY80mQMvwBciwIPGIXwjqgL/ZGcEZaAIy0JFqivPmget6Rg32jo7f BVxA== 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=ZIlIhj6T1GPGAChnUyIP7cY1+AAB0fs5v+t/uRkEsgo=; b=oOSO1Ixl7ou5lu5qYlDM4ZNP/0goNXYC/Qy7tzJ4NImLnvL1VqRoOFBU3fb2614jr7 rhgx0vJocBj67NG/9wX+20iP3PFQBc6MIl3R6P0hFNKdjFyi4oJBT6Zp9aq/doQF48x7 KimJrl31ky0bbAITlcb+cTXa30aIubZayHaVP1Wkyb9qBASPOQ30BXZJPS8Tqs/xVseI jyfL01k45Q33pNlzZ9chhNvV2LiiA2U6M83MZW3JMNWo5ZciSMwvfb6hGTP1UqWTrrTx ER/VGGAKFLJcGnpVst2xke0h16nZ3a+HR+otnvLgaDnfETy5MLSXuDe5XSmfoKWrKjAw KOWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=dwDccB8G; 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 q7si26136113otn.108.2020.01.02.08.15.31; Thu, 02 Jan 2020 08:15:44 -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=dwDccB8G; 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 S1728832AbgABQOq (ORCPT + 99 others); Thu, 2 Jan 2020 11:14:46 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:42264 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728780AbgABQOq (ORCPT ); Thu, 2 Jan 2020 11:14:46 -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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZIlIhj6T1GPGAChnUyIP7cY1+AAB0fs5v+t/uRkEsgo=; b=dwDccB8G6vqBRm61ohhaOaOgK w3mEJ3sUqIafWUpbtWV76qPPfuOCg5LHD0er5OyxmVMEDQFVcDC3N1tjiQxb3occlGA5FuiU7OT0r wENSqalZnTFMVSxu0EvctKXfl72+84sWhFcU5XUnR/PerrLnySgrbEPyl2bjNq5gGSkT6bKEohjps e7ljvXUm3xP7s5cT1LFOntDM48aKifd/a8HE27kpSKaIMtcSM6spbJZGEcLgBw9GW2/foBl553IFX YvRmUxvh6wP2VILvmMeesb4seqrZmQkyyyVPifTPvZPpFBVXUYky7dY6sAyLib/c3c1T+jtCAVdW1 JaWCm84ag==; Received: from [2601:1c0:6280:3f0::34d9] by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1in37V-0005nO-8G; Thu, 02 Jan 2020 16:14:45 +0000 Subject: Re: [PATCH] menuconfig: restore prompt dependencies in help text To: Arvind Sankar , Al Viro Cc: Masahiro Yamada , linux-kbuild@vger.kernel.org, Rob Landley , linux-kernel@vger.kernel.org References: <20191231055839.GG4203@ZenIV.linux.org.uk> <20200101204152.402906-1-nivedita@alum.mit.edu> <20200101210426.GA8904@ZenIV.linux.org.uk> <20200101222644.GA438328@rani.riverdale.lan> From: Randy Dunlap Message-ID: <0ea3e528-4835-ff9c-f5a2-f711666ba75f@infradead.org> Date: Thu, 2 Jan 2020 08:14:43 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20200101222644.GA438328@rani.riverdale.lan> 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 1/1/20 2:26 PM, Arvind Sankar wrote: > On Wed, Jan 01, 2020 at 09:04:26PM +0000, Al Viro wrote: >> On Wed, Jan 01, 2020 at 03:41:52PM -0500, Arvind Sankar wrote: >>> Commit bcdedcc1afd6 ("menuconfig: print more info for symbol without >>> prompts") moved some code from get_prompt_str to get_symbol_str so that >>> dependency information for symbols without prompts could be shown. >>> >>> This code would be better copied rather than moved, as the change had >>> the side-effect of not showing any extra dependencies that the prompt >>> might have over the symbol. >>> >>> Put back a copy of the dependency printing code in get_prompt_str. >> >> Umm... Is "visible" really accurate in this case? AFAICS, the >> entry (and help for it) _is_ visible with EXPERT=n. OTOH, with >> EXPERT=y and MULTIUSER=n it disappears completely. >> >> I'm not familiar with kconfig guts (and not too concerned about that >> feature of help there, TBH), but it looks like what you are printing >> there is some mix of dependencies ("visible when") and selectability... > > Perhaps not the most accurate term. For NAMESPACES it has a submenu, so > it can't disappear as long as its selected, even if it's not editable > any more. A "leaf" level option like MULTIUSER, otoh, does disappear > completely (even though it's still selected). > > But there are also things like CONFIG_VT, which stays visible, even > though its not a menu.. I think because there is a visible option that > depends on it and immediately follows, which menuconfig shows by > indenting. If the order of UNIX98_PTYS and VT_HW_CONSOLE_BINDING is > flipped in drivers/tty/Kconfig, then VT disappears when EXPERT=n. > > Dunno, maybe Editable would be a better word than Visible? I would prefer Editable instead of Visible. and the Subject should be more than menuconfig since the patch also "fixes" nconfig, xconfig, and gconfig. Tested-by: Randy Dunlap Thanks. -- ~Randy