Received: by 10.223.148.5 with SMTP id 5csp6074065wrq; Wed, 17 Jan 2018 09:01:50 -0800 (PST) X-Google-Smtp-Source: ACJfBote0g7D9Pdq5gTB8RqWOz06ciDM4zV9L2DRQWvEQ573tKbHK1dBkw/rUAg0KCNBKqba0SC+ X-Received: by 10.98.51.130 with SMTP id z124mr38149691pfz.21.1516208510332; Wed, 17 Jan 2018 09:01:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516208510; cv=none; d=google.com; s=arc-20160816; b=Q+vXqJ0sT1fqK85lpit9t2HKph8GM3jHhuciIdSIPIxKPCUcIj8rH7nOowcLkD1X/S 0v7wLXgLu+dq7bgrAoK4+6S46nCUpBXQU5dERv8rerMTvRyVPZDhFdBRGV6QHdUvGvHK eU31T8TG0oSZBscuBDuBCbbHdrH283mShruof9ZUS2CMkiqf3aoIUF9iYhFORBQkvj3m EoPEpirVGfXiOeFXcnWFcIXhoZL4QqB7hY+NdNE7t4UqV2zv174I3/XVMunfZd4CZ0yj 3XBIAK2Qlx6h8fXznv++v0oOkM94+zzuPbTwzhEPjiHobEoPVzWds624TksImu3zEaVB /FUQ== 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=cMmHPhxaI7J0Ur622bkUAAEApdNK4dt+ykclWIk4IJo=; b=hj26CSpTgP9VqPwxk41EVcNWglzWMlpBvkVIyfhq0fB0jDW2hZKN8pwALJdi+EREQC l8JwQAVDlK86MxNNOg5XnSBGISfxweiPdegMbse4Aq+J8P+NcvtPSnfhXYTEB5gAcFoa WGhiaNo3ssj8aRKRtqpHvbp/QAs0sUHceI8J9vSt0hZ6jFkyPrTXGkg1hNAEIkDlBso4 UQ6n3SK4xNxqGVqBDQVRSoYrq8cTykxfmUVt6esaFT/GxFBM2n1WlWBVPTA4ECJDyR8S O6GlLDmpY0Rrc1ZOkG0/6n6EW0TgPDLu29lYdSo9RVOiUd4ypFIdGFSDeJdS8SApvb+r Idig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=dmjZYyYn; 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 x2si4693509pfh.381.2018.01.17.09.01.32; Wed, 17 Jan 2018 09:01:50 -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=dmjZYyYn; 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 S932241AbeAQRAz (ORCPT + 99 others); Wed, 17 Jan 2018 12:00:55 -0500 Received: from conssluserg-05.nifty.com ([210.131.2.90]:42400 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754099AbeAQRAx (ORCPT ); Wed, 17 Jan 2018 12:00:53 -0500 Received: from mail-ua0-f180.google.com (mail-ua0-f180.google.com [209.85.217.180]) (authenticated) by conssluserg-05.nifty.com with ESMTP id w0HH0UCU022242; Thu, 18 Jan 2018 02:00:31 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com w0HH0UCU022242 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1516208431; bh=cMmHPhxaI7J0Ur622bkUAAEApdNK4dt+ykclWIk4IJo=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=dmjZYyYnxKKtzbKzzB+AdKYaOm7VmrnhqQr+EuvBlONlEqI9j7tUYP+Mbur8iQgiI +dH0VzU/2JdGzOLeLf2FHq9x0nyE2zHmhM4S9tiRzBTSp6S3Ry61CDVDpMiNWGi7kR 6w797olNyh5aB09yzTsfASjfY49iD9nw+ZnqasTYbirrlYJhZ6JQDWQ5MllvuzEhoO EzNjJFkN3Gr3me6dgv0h8oZ1Lzwj4Tvqfi2fDFwrBmtZETSMY9oyOnZy0KPujbYNFk s4JYoTiuDEfF/1QKJTLcuZEONihRpuhcUUEJ8Hnzh+URy22BtEaNBLoPmGqpwXUeFQ /J2uoxjP7i/Zw== X-Nifty-SrcIP: [209.85.217.180] Received: by mail-ua0-f180.google.com with SMTP id z47so13648076uac.0; Wed, 17 Jan 2018 09:00:31 -0800 (PST) X-Gm-Message-State: AKwxytd0OPsgRd+7VHJxpXZ09SyCrgW3ErIJUo8g7RJiTLf4Q+bCuUb5 1K5A4O7c+INZx/FGpiuj3/2NbLXlVH+vbf4q0zk= X-Received: by 10.176.83.76 with SMTP id y12mr2942113uay.109.1516208430235; Wed, 17 Jan 2018 09:00:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.89.196 with HTTP; Wed, 17 Jan 2018 08:59:49 -0800 (PST) In-Reply-To: References: <1515567374-12722-1-git-send-email-yamada.masahiro@socionext.com> From: Masahiro Yamada Date: Thu, 18 Jan 2018 01:59:49 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/6] kconfig: do not call check_conf() for olddefconfig To: Ulf Magnusson Cc: Linux Kbuild mailing list , Sam Ravnborg , Michal Marek , Marc Herbert , 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 Hi Ulf, 2018-01-13 1:49 GMT+09:00 Ulf Magnusson : > On Fri, Jan 12, 2018 at 1:26 PM, Ulf Magnusson wrote: >> On Wed, Jan 10, 2018 at 7:56 AM, Masahiro Yamada >> wrote: >>> check_conf() traverses the menu tree, but it is completely no-op for >>> olddefconfig because the following if-else block does nothing. >>> >>> if (input_mode == listnewconfig) { >>> ... >>> } else if (input_mode != olddefconfig) { >>> ... >>> } >>> >>> As the help message says, olddefconfig automatically sets new symbols >>> to their default value. There is no room for manual intervention. >>> So, calling check_conf() for olddefconfig is odd in the first place. >>> Rather, olddefconfig belongs to the group of alldefconfig and defconfig. >>> >>> Signed-off-by: Masahiro Yamada >>> --- >>> >>> scripts/kconfig/conf.c | 10 +++++----- >>> 1 file changed, 5 insertions(+), 5 deletions(-) >>> >>> diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c >>> index 866369f..52cbe5d 100644 >>> --- a/scripts/kconfig/conf.c >>> +++ b/scripts/kconfig/conf.c >>> @@ -434,7 +434,7 @@ static void check_conf(struct menu *menu) >>> if (sym->name && !sym_is_choice_value(sym)) { >>> printf("%s%s\n", CONFIG_, sym->name); >>> } >>> - } else if (input_mode != olddefconfig) { >>> + } else { >>> if (!conf_cnt++) >>> printf(_("*\n* Restart config...\n*\n")); >>> rootEntry = menu_get_parent_menu(menu); >>> @@ -674,15 +674,15 @@ int main(int ac, char **av) >>> /* fall through */ >>> case oldconfig: >>> case listnewconfig: >>> - case olddefconfig: >>> case silentoldconfig: >>> /* Update until a loop caused no more changes */ >>> do { >>> conf_cnt = 0; >>> check_conf(&rootmenu); >>> - } while (conf_cnt && >>> - (input_mode != listnewconfig && >>> - input_mode != olddefconfig)); >>> + } while (conf_cnt && input_mode != listnewconfig); >>> + break; >>> + case olddefconfig: >>> + default: >>> break; >>> } >>> >>> -- >>> 2.7.4 >>> >> >> Acked-by: Ulf Magnusson >> >> Cheers, >> Ulf > > Should have been Reviewed-by, obviously. Sorry about that. :) > I will turn it into Reviewed-by. Anyway, thanks a lot for checking these patches! -- Best Regards Masahiro Yamada