Received: by 10.223.176.46 with SMTP id f43csp1991383wra; Sun, 21 Jan 2018 08:48:33 -0800 (PST) X-Google-Smtp-Source: AH8x2262jPnV79TAgFjH8HavVQNYxZ4oKn/A9wQx0OUwxGwgw7IQypP1cI1qEO6AfWlC6jdXaRAa X-Received: by 2002:a17:902:9003:: with SMTP id a3-v6mr2209808plp.338.1516553313527; Sun, 21 Jan 2018 08:48:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516553313; cv=none; d=google.com; s=arc-20160816; b=sm/HRbeaKIvzYG1GSUB9yvxC9Q4cRPZkHjx4lScPNiGY8RZA5z1gRkgcPF2dO9sCVt bWTnRZ+HEMWDzlUZkw1wiZFuzQPMvyFwtRzWe3D5afgLXhOWtBPiGheIfMz8IMd1lb+B fJfC02SzDvCIgC2HnRWYXfd9YKzfNIob7G9G/EWpFe81E0TT6fGSwEgXb69dkoolNkOh //YmbSXSFSfMkJXqBxYfTuWFk6EHgoYF3sOX6nnLM04F47QIzOB3CKl8TZQHPwJne+U1 OVHFCRBvFMTalYnw0Rf1fNPadRlo6AjZ8VOrUZgguLT4I7D1hvvTTvGrEou+0o1DGBVq 2/1A== 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=Tb6vRWwrbvrs1SEu2CVLWvLSAgmmP8HtjS04Pedl/S0=; b=LvZ59/jn2HTMouKEfj3JtdVnMOmaxigitx93YRdUxitXJB/Fj8uFUQbw0t8ieE0Djv fkGpsb7qatURpHI/95xbfVwNkdAbn1CoAlxdB/CuwLWqrBhXgfLAb2/tnU8iVxdk1nPA Ecn3YDVGZphocgByvyQ8TTOMQrj/FeZ6Q+2TAdpU2S/hS+D4cWJezpSU3p1pxbmMfLpJ aLV7lbz9sUu/n3VDlWAKLgcIrqUhiwvXyRxlymNz1KLDOynB6JdNri27Pb6nCR/JvRUg 9471rDgfOOA1XIAoXFaTQdB+2FqAIrrAbFao9FcvRDL+mzMpNArBcrgu4abBBt8afnRS 86aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=GJcRZMKU; 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 o125si1035663pga.697.2018.01.21.08.48.19; Sun, 21 Jan 2018 08:48:33 -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=GJcRZMKU; 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 S1751085AbeAUQry (ORCPT + 99 others); Sun, 21 Jan 2018 11:47:54 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:51912 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750793AbeAUQrx (ORCPT ); Sun, 21 Jan 2018 11:47:53 -0500 Received: from mail-vk0-f46.google.com (mail-vk0-f46.google.com [209.85.213.46]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w0LGlnVe030440; Mon, 22 Jan 2018 01:47:49 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w0LGlnVe030440 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1516553270; bh=Tb6vRWwrbvrs1SEu2CVLWvLSAgmmP8HtjS04Pedl/S0=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=GJcRZMKUgYVShyeTQG9ptrR9N+jiO70zUf6hz4QEntttanH8BrLhtSDdDTcpfccBe +nGqUrpru4rOwANOwPAtAh7ymgYd/Oq7UpVLE2q+rqrer8lFm7klAvlFtw06tESlp9 kalvYLSjyKy2vBCV9deIsPi52XsppRDY9dtOqATGsw61JCQeO97tHIZQSd88heXR3Q PflxzF4xq+iQSk4zWcheY1X+yVTVioN4gpGO/wEGVJzoz+7zb8eUTae86hf2SMpmJh stSW1gnkXKx6uE0r2GaCVFQSTj81Iwcl324rjQxUzURlCkDds+zpr3QbmobziYAWVY yL/C94MBCxecg== X-Nifty-SrcIP: [209.85.213.46] Received: by mail-vk0-f46.google.com with SMTP id w201so3649005vkw.0; Sun, 21 Jan 2018 08:47:49 -0800 (PST) X-Gm-Message-State: AKwxytdhs+5WZPz/QW6484nmxS8MYyFMhRvv8qk6YAfGU4Hixu05hHgE rB1sJJa90jmtl8LPwoc848V2QZ7gXz11W2QT0rk= X-Received: by 10.31.235.132 with SMTP id j126mr2675454vkh.193.1516553268716; Sun, 21 Jan 2018 08:47:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.49.90 with HTTP; Sun, 21 Jan 2018 08:47:08 -0800 (PST) In-Reply-To: <20180114144926.29162-1-ulfalizer@gmail.com> References: <20180114113820.19017-1-ulfalizer@gmail.com> <20180114144926.29162-1-ulfalizer@gmail.com> From: Masahiro Yamada Date: Mon, 22 Jan 2018 01:47:08 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] kconfig: Document 'if' flattening logic 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:49 GMT+09:00 Ulf Magnusson : > It is not obvious that this might refer to an 'if', making the code > pretty cryptic: > > if (menu->list && (!menu->prompt || !menu->prompt->text)) { > > Kconfig keeps the 'if' menu nodes even after flattening. Reflect that in > the example to be accurate. > > No functional changes. Only comments added. > > Signed-off-by: Ulf Magnusson > --- > Changelog > > v2: > I forgot to mention that this code also undoes automatic submenus created below > promptless symbols. > > scripts/kconfig/menu.c | 29 +++++++++++++++++++++++++++++ > 1 file changed, 29 insertions(+) > Applied to linux-kbuild/kconfig. Thanks! -- Best Regards Masahiro Yamada