Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752192AbeANLix (ORCPT + 1 other); Sun, 14 Jan 2018 06:38:53 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:36876 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751445AbeANLiu (ORCPT ); Sun, 14 Jan 2018 06:38:50 -0500 X-Google-Smtp-Source: ACJfBosChvIY+EltXv93VpRbJXjL5N01NbluyAH2yDRO2EFR/WdJGL3TF2KUM3HRrQbMoStOdYsOCA== From: Ulf Magnusson To: linux-kbuild@vger.kernel.org Cc: yamada.masahiro@socionext.com, sam@ravnborg.org, linux-kernel@vger.kernel.org, Ulf Magnusson Subject: [PATCH 2/2] kconfig: Improve auto. menu documentation accuracy Date: Sun, 14 Jan 2018 12:38:20 +0100 Message-Id: <20180114113820.19017-2-ulfalizer@gmail.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180114113820.19017-1-ulfalizer@gmail.com> References: <20180114113345.18623-1-ulfalizer@gmail.com> <20180114113820.19017-1-ulfalizer@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: An 'if', 'menu', or 'choice' that depends on a preceding symbol will also generate a submenu. No functional changes. Only comments updated. Signed-off-by: Ulf Magnusson --- scripts/kconfig/menu.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index 1f7bcceacde3..86031dc36f7d 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c @@ -414,9 +414,10 @@ void menu_finalize(struct menu *parent) menu_finalize(menu); } else if (sym) { /* - * Automatic submenu creation. If sym, A, B, C, ..., are - * consecutive symbols and A, B, C, ... all depend on sym, the - * following menu structure will be created: + * Automatic submenu creation. If sym is a symbol and A, B, C, + * ... are consecutive items (symbols, menus, ifs, etc.) that + * all depend on sym, then the following menu structure is + * created: * * sym * +-A @@ -425,7 +426,7 @@ void menu_finalize(struct menu *parent) * ... * * This also works recursively, giving the following structure - * if B depends on A: + * if A is a symbol and B depends on A: * * sym * +-A -- 2.14.1