Received: by 10.223.176.46 with SMTP id f43csp348780wra; Thu, 18 Jan 2018 18:32:24 -0800 (PST) X-Google-Smtp-Source: ACJfBoviwz9nwOCsC4gMjNr10vza067dWK1TE4wC04ur8CZWpuYd1gRnJoJpyS+KOIJldJqUoZy9 X-Received: by 10.101.78.134 with SMTP id b6mr37583964pgs.381.1516329144190; Thu, 18 Jan 2018 18:32:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516329144; cv=none; d=google.com; s=arc-20160816; b=QKKQiwhGHMEtNFYCAO0sX3p1RqZ3p/MSdcVPWA1Y52ULS1v0U4vRK6dSt+LItr9WqF Sj4JrK7c5dOtmEWpxYubeWbCTluO37ZyhC0ri4HO3UTReiQgomy7t9V0MokR4+vS9n3q NvZPAbS1GhfUjjkMnTYBVjo/nK7cV5bRcqDf8hFD8faQzzO/LUJfJEgXeaK5wnpQMrrv 54IBIqVdxoON65N80o78sRhzZyXwne5/BLhVwxFz0611Op6myylhmo3oXIcYdWKcAikL CwILSIjKccKyjPKmDUc8XwEAwhM69rh/A9buUCH8EOxeIajDCDztkwUhx49sbE2b5zh7 2nJA== 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 :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=yGTIWnsft7YcjK4Zrcfwpec0r9A1QYlCHztYBbDDNHU=; b=F7C2FSBkPaSdL0aaPiiBCCDzkC+jsjFVUqBvBDl3QWoU6il9Jj5WAFnjRtmxI3GJLd 2UzQMWYUZhH63VO5UrICTYOvs3fXhWCy2g849SzEKZAUW1PiUhgTuMX+8uTkglNJB1LG 5QJs1y1FVCEqpZmGC1F2Obw+RyEdWwHFWYH1wN4Ds1Z8qWHiNVzOikd9URhuFXiFwCy8 RrYXf5YdIPxAJsJUqNtsK7FcMy39QsH6fP9v2t50ESwZSsp1VNf6xyNoluBTt158UKET RMpqxr2wM7t2nE8ymNtTrmJZMngqnH0weqgg4ZCxQAEfGEuwIM0ybbeCILvSzyrzofDX CvOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Dhmo+ENz; 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 z185si7517941pgb.202.2018.01.18.18.32.10; Thu, 18 Jan 2018 18:32:24 -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=pass header.i=@nifty.com header.s=dec2015msa header.b=Dhmo+ENz; 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 S1755202AbeASCas (ORCPT + 99 others); Thu, 18 Jan 2018 21:30:48 -0500 Received: from conssluserg-06.nifty.com ([210.131.2.91]:54251 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752855AbeASCal (ORCPT ); Thu, 18 Jan 2018 21:30:41 -0500 Received: from mail-ua0-f175.google.com (mail-ua0-f175.google.com [209.85.217.175]) (authenticated) by conssluserg-06.nifty.com with ESMTP id w0J2UTZ1028362; Fri, 19 Jan 2018 11:30:30 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com w0J2UTZ1028362 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1516329030; bh=yGTIWnsft7YcjK4Zrcfwpec0r9A1QYlCHztYBbDDNHU=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=Dhmo+ENzJQlW/2ro8fBBLeU4zonizCMtxUynh08O3p56nMJUjILtNn0QwRX5O5NAz Sn/fsAnvV+7PnpeP3H9OKw0KXtWigZYECBuXc6HGRQME1NYjldEX6Yg0WzlkH8AgFg DeOjo23yHmKD10xfKmOf80HZ0czcUTUKOexkZlYE5ohPhe1XhF0r7XGClr1+v6nEaC 5T2LXJonBdOD2vQX3DQ8ozng/yfSgdwo3RXwzVPWrAmqLQv3T2M4yjLqTWhiG6b0pS ewbEEVJ8O2irf5Vf7eDMFYBB+L0yo49hnPmrzu1XrO/jn0F747cXbRPiafHnnoBllD ATaIfY3HjDdaw== X-Nifty-SrcIP: [209.85.217.175] Received: by mail-ua0-f175.google.com with SMTP id d1so171518uak.1; Thu, 18 Jan 2018 18:30:30 -0800 (PST) X-Gm-Message-State: AKwxyte5BJDVtJI1XOzp/rZwd03OlGeVxto0k1bJ4emTXToJagjvhAv0 pistZRG/D94CYtcsk2HNKjSBWERiZDqIGNDCRak= X-Received: by 10.176.93.8 with SMTP id u8mr6628472uaf.195.1516329028986; Thu, 18 Jan 2018 18:30:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.49.90 with HTTP; Thu, 18 Jan 2018 18:29:48 -0800 (PST) In-Reply-To: References: <20180114141205.26814-1-ulfalizer@gmail.com> From: Masahiro Yamada Date: Fri, 19 Jan 2018 11:29:48 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kconfig: Clarify choice dependency propagation To: Ulf Magnusson Cc: Linux Kbuild mailing list , Sam Ravnborg , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ulf, 2018-01-19 1:58 GMT+09:00 Ulf Magnusson : > On Thu, Jan 18, 2018 at 5:47 PM, Masahiro Yamada > wrote: >> 2018-01-14 23:12 GMT+09:00 Ulf Magnusson : >>> It's easy to miss that choices are special-cased to pass on their mode >>> as the parent dependency. >>> >>> No functional changes. Only comments added. >>> >>> Signed-off-by: Ulf Magnusson >>> --- >>> scripts/kconfig/menu.c | 7 +++++++ >>> 1 file changed, 7 insertions(+) >>> >>> diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c >>> index 92d3f06cd8a2..53964d911708 100644 >>> --- a/scripts/kconfig/menu.c >>> +++ b/scripts/kconfig/menu.c >>> @@ -323,6 +323,13 @@ void menu_finalize(struct menu *parent) >>> if (menu->sym && menu->sym->type == S_UNKNOWN) >>> menu_set_type(sym->type); >>> } >>> + >>> + /* >>> + * Use the choice itself as the parent dependency of >>> + * the contained items. This turns the mode of the >>> + * choice into an upper bound on the visibility of the >>> + * choice symbols. >>> + */ >> >> Does the last "choice symbols" mean "choice values"? >> The "choice" itself is a symbol with NULL name, >> so I'd like to clarify it. > > Yep, means the choice values (which are symbols). "Choice values" > would probably be clearer, yeah, or maybe "choice value symbols". > > Should I submit a new version? I'm fine with just a > 's/symbols/values/' or 's/symbols/value symbols/' otherwise. > > Cheers, > Ulf It is trivial, so I will locally fix it up. s/symbols/value symbols/ Thanks! -- Best Regards Masahiro Yamada