Received: by 10.223.148.5 with SMTP id 5csp7749287wrq; Thu, 18 Jan 2018 09:00:51 -0800 (PST) X-Google-Smtp-Source: ACJfBot/ccyxzdCRIVtsfABfx5uCEOs1G2jRb7pXD+s0ufIjAoCvTw319Vz8cFbcbgR5Y2IInE3A X-Received: by 10.98.205.70 with SMTP id o67mr30895895pfg.100.1516294851251; Thu, 18 Jan 2018 09:00:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516294851; cv=none; d=google.com; s=arc-20160816; b=dJiwMsDqnlGOAon3WnyUOYx+M1qsHh0qH/frTV0Ma+NAnvYl8xDM11Hvr7PY13CgPM G8lh9ebyeN+srN6lPPIZqnPa3L+BdTBK++SazSetbNyzDj9dOHAHzlcrssgfBo74pBHi I3caY01DvL122k+MCdHNicAMZNxhKn8uLjuoEXEPDRk3jZ82psBR8FcFmR9+P6x5pB9/ eM8z7VudDO3ZKO7GhRPkUwXHfqgtjTEgahEaSSR59BWn0y0UsP1W96Dcc7XU1xDJ2esZ R5eeATfIsDr6dLQsikUtEqd9EmS+4ebtC2oDfCt3PyhG/y+6vQT9AzmHRX6EYWCp7MvP UAgQ== 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 :arc-authentication-results; bh=5aS+zftppNcsoYuhbs/QTlWnguJNFKVduISOxysYPX0=; b=RIoQyjBh2zfy3E1+QFM6OrNi3BZ82Jwaia8ki58AvWUHEFAIBroetU8tB08xRqHS0N LPH/5DehchQNQ+5wNYXrOx4/rptsnKLVIWHlRNOeIhItWNn7s4f48GnhQOINPbGYxtZa /CZwjpFP5dWlqdF+xNsLyhrj5UdjGQmwQ8niL0QScI5+AtS9c0zkdHYBDnJB8/No39/P 6U4kICUqqZpCn2rp1oKcLepnUCnSevR7znB49nERfKXoXYZlqo/RQI1axg12XS4BlCEY TMDDysj/YLibLwLtQQ0dXujkwuAkSZZcZTshRBcgBMxKouVq6DbGfcYV7RngZ0i6eBuA 01Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nbGa/Vp9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n24si556072pgd.735.2018.01.18.09.00.36; Thu, 18 Jan 2018 09:00:51 -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=@gmail.com header.s=20161025 header.b=nbGa/Vp9; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932901AbeARQ64 (ORCPT + 99 others); Thu, 18 Jan 2018 11:58:56 -0500 Received: from mail-ua0-f193.google.com ([209.85.217.193]:46509 "EHLO mail-ua0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932860AbeARQ6s (ORCPT ); Thu, 18 Jan 2018 11:58:48 -0500 Received: by mail-ua0-f193.google.com with SMTP id j23so10640413uak.13; Thu, 18 Jan 2018 08:58:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5aS+zftppNcsoYuhbs/QTlWnguJNFKVduISOxysYPX0=; b=nbGa/Vp95lMojr01iwiMVeB6EVEEvlpts3CgSPavqtjCzp2u6JVusfHrTxAOESECiO eMInEyXPIlQw1QnXW0qOhutStAM7KcneZcPxlft8FRQSGeCK2INgrmSwk+63MdM/yK8z LTo2c5cYgVCqZUJgG5R+jJMJCGJtqdDH+DgMBCMqIhG8tyUTxnBgFxlzzO4NaFrxs+Tj pYWRB5RhgypveU/iUGxFemLtW8yabsyGcQNc+pIEndO6ySJqeMyn3yKPgvPJ0fEktTui VQW1VmXf0b1OWAw0b/CRh0FjYrP405Ln6wpRBHGrZn9q7EPM7g5HOJddG4Oo2C3O6fYD zR8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5aS+zftppNcsoYuhbs/QTlWnguJNFKVduISOxysYPX0=; b=HPLrFR/xC1rOB7wrfd8Z+tVVM9lr6rqkyMzzVZ7gxQhxAGvsrY7xDo9oSpOwhLzq+d Mo3VDnoZkjQBXeeysUrcppiubEKK6oiQYW8/B/enyXHhtgHqErTuXhOEIKL7dUgcmlK0 nEnYF10Nb3QIcAOVCLfjn1jkYY+aO+rpyr+IajYmCQecvjsodIPmVkurp1GkNINCzTb3 K9x63G78lMaJxK6DBQA5r3hZTVbf09cl88rJVn3CRKUik2ApXh3P8NhR6AMp3Vacez5H 1ucwlRvwkdwnPeG9xeH34XOJs3ixgTOHTO2T1tesuwnRyWXJi7LYvDoeHfnqqm8j/2Ki DlMg== X-Gm-Message-State: AKwxytf1AUM/YX+a+ROna+os6tPryZ2n+MddMibb/atFHfemx1Y+GaAO I/6mP2x00jkagwq+7/ktqVxTKy/Bct7CwrIrGBhfGa09 X-Received: by 10.176.10.22 with SMTP id q22mr5851392uah.89.1516294726824; Thu, 18 Jan 2018 08:58:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.105.77 with HTTP; Thu, 18 Jan 2018 08:58:46 -0800 (PST) In-Reply-To: References: <20180114141205.26814-1-ulfalizer@gmail.com> From: Ulf Magnusson Date: Thu, 18 Jan 2018 17:58:46 +0100 Message-ID: Subject: Re: [PATCH] kconfig: Clarify choice dependency propagation To: Masahiro Yamada 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 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