Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753143AbeANVBF (ORCPT + 1 other); Sun, 14 Jan 2018 16:01:05 -0500 Received: from asavdk4.altibox.net ([109.247.116.15]:56706 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752300AbeANVBE (ORCPT ); Sun, 14 Jan 2018 16:01:04 -0500 Date: Sun, 14 Jan 2018 22:00:48 +0100 From: Sam Ravnborg To: Ulf Magnusson Cc: linux-kbuild@vger.kernel.org, yamada.masahiro@socionext.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] kconfig: 'if' and automatic submenu creation documentation Message-ID: <20180114210048.GA11442@ravnborg.org> References: <20180114113345.18623-1-ulfalizer@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180114113345.18623-1-ulfalizer@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=eqGd9chX c=1 sm=1 tr=0 a=ddpE2eP9Sid01c7MzoqXPA==:117 a=ddpE2eP9Sid01c7MzoqXPA==:17 a=kj9zAlcOel0A:10 a=47r3cY05uTHk0NFlxPUA:9 a=CjuIK1q_8ugA:10 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: Hi Ulf. On Sun, Jan 14, 2018 at 12:33:43PM +0100, Ulf Magnusson wrote: > These together should make the automatic submenu logic a lot clearer. > > Ulf Magnusson (2): > kconfig: Document 'if' flattening logic > kconfig: Improve auto. menu documentation accuracy > > scripts/kconfig/menu.c | 33 +++++++++++++++++++++++++++++---- > 1 file changed, 29 insertions(+), 4 deletions(-) Very good with extra comments in menu_finalize. If you can mamage to explain the logic related to select then even better. While on the subject on improving readability, then menu_finalize would benefit from a split in a number of well named and well documented helper functions. It would be great if you could try this out. Sam