Received: by 10.223.148.5 with SMTP id 5csp7729410wrq; Thu, 18 Jan 2018 08:48:40 -0800 (PST) X-Google-Smtp-Source: ACJfBov/PiJWx9KDQmOr6E+F2wU7Nn3lvbWRg7jBQOiqRim1fHGprF3d8EP/3Q38LZXUQzLR/7Eu X-Received: by 10.98.63.93 with SMTP id m90mr33286011pfa.231.1516294120804; Thu, 18 Jan 2018 08:48:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516294120; cv=none; d=google.com; s=arc-20160816; b=QphhBw3/iT64H+g2pHN7F5K0g4JLy7v4dFxXvb5goJ7gZXMlY6Ovbyf1YxL+5IlBdX xwqwbl7jijrrDWPTNL9k4aE8SUkTvNBQ+hFrlnicbNdOL3PvQIKMBy9qnjd9TT9IZQuC pXw764lBvNVfsGIuUHiwp/WV0q7+9ly2r6M6hAmNwp7ISHS9UlPy2J5MYl38Eva6cAmU dKr6td//5QNuNf3W5nKaXoA3dV/+KclzZ2M9a8Al1CjscBWLm+TLsQjxGNBdXVJ6/jsH c8S/FD0kOPbigHjNAK9Sctr/xBVqf7cux6Clr6fXpCV3W9vPz9TJYguOvamtY60OM3n2 8twA== 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=Lq6vU40HUIFzVgQ070BOMlKdmVcm9vGmu9moIMEYWhk=; b=fw8kyiao919bhdO7VcXfJp1f8kryi0Pq2dVDfoHJCKLBuvjYHtofISXyzj1qSlMDRL uvyk0sX0IbrCwzAa/ob/wfPwuEAxvUbkm99+ZuJEWOzcMzREyGEV9ceXXk8Cz3PzC0Uf NYSVZbkoa2NDZxQMp9oRFWuy/z4rLbqjH0GxKgiVX4kwHUxSLzYQpdLSpQHs+pu9Nm2l YK8smQK+aO6Ss52tNhM8t/1typCYIyGx5fBmdvQDdF+m55B1J+TI7zqKQ8Pw/frf37oO kPuJ/WP/mXYkp0KayUhjS4Gjs5dHUfobXOonDtA7i9iYhsIkmbhfnsrdH6RELq3GfotE KYJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=yCBsarub; 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 u26si2541955pge.210.2018.01.18.08.48.26; Thu, 18 Jan 2018 08:48:40 -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=yCBsarub; 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 S1754952AbeARQsE (ORCPT + 99 others); Thu, 18 Jan 2018 11:48:04 -0500 Received: from conssluserg-04.nifty.com ([210.131.2.83]:28224 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753361AbeARQsC (ORCPT ); Thu, 18 Jan 2018 11:48:02 -0500 Received: from mail-ua0-f171.google.com (mail-ua0-f171.google.com [209.85.217.171]) (authenticated) by conssluserg-04.nifty.com with ESMTP id w0IGliKl028281; Fri, 19 Jan 2018 01:47:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com w0IGliKl028281 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1516294065; bh=Lq6vU40HUIFzVgQ070BOMlKdmVcm9vGmu9moIMEYWhk=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=yCBsarubNQqu5SIciQ22KNMqajGWag99uzvkR6uu3CsA3PO3usz4VE60ETG9Bc1xc 46a9rObMP7xOKVeneewAkCDaUUqGSWnAbA91j/66vCodG0+vU6pyfSGnVqRFLNJ8rQ 9hbnqxzrBGc58JAD7AAoLv89Pn7Af6AHX96xrFXy6SoOc7kl+LkRQmbPd4FxAMCGOO zth9sBhmfUPara58f5zmWEyGbn9/mtuE7GIwsWEw7lJ2yvy9ffuS6PyCpRdthj43dm aAc3e+fHD7ftP2x1RLfxqHazeRPt5pe6k2HqtHBc464ew7E1fAzygZxBg5Jg0IH4TG MNvZnWVnvvRMA== X-Nifty-SrcIP: [209.85.217.171] Received: by mail-ua0-f171.google.com with SMTP id z47so16004135uac.0; Thu, 18 Jan 2018 08:47:45 -0800 (PST) X-Gm-Message-State: AKwxyteTki/uBK/fSL1BwcMuyQuxaEChyn965SUK/dL4AePOSRUfGNtv 4wIoBN6RPYKcbEMS5Eyapce4XkZFnDI5+HExk7k= X-Received: by 10.176.84.219 with SMTP id q27mr5254360uaa.186.1516294064127; Thu, 18 Jan 2018 08:47:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.89.196 with HTTP; Thu, 18 Jan 2018 08:47:03 -0800 (PST) In-Reply-To: <20180114141205.26814-1-ulfalizer@gmail.com> References: <20180114141205.26814-1-ulfalizer@gmail.com> From: Masahiro Yamada Date: Fri, 19 Jan 2018 01:47:03 +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 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. -- Best Regards Masahiro Yamada